checkParameters method
Implementation
String? checkParameters(BuildContext context) {
final AppLocalizations appLocalizations = AppLocalizations.of(context);
if (product.barcode.isEmpty && product.categoryTag.isEmpty) {
return appLocalizations.prices_amount_no_product;
}
_checkedPaidPrice = validateDouble(paidPrice)!;
_checkedPriceWithoutDiscount = null;
if (promo) {
if (priceWithoutDiscount.isNotEmpty) {
_checkedPriceWithoutDiscount = validateDouble(priceWithoutDiscount);
if (_checkedPriceWithoutDiscount == null) {
return appLocalizations.prices_amount_price_incorrect;
}
}
}
return null;
}