action method
- BuildContext context
override
Implementation
@override
Future<void> action(BuildContext context) async {
if (!await ProductRefresher().checkIfLoggedIn(
context,
isLoggedInMandatory: isLoggedInMandatory,
)) {
return;
}
if (!context.mounted) {
return;
}
await confirmAndUploadNewPicture(
context,
imageField: imageField,
barcode: barcode,
productType: product.productType,
language: language,
isLoggedInMandatory: isLoggedInMandatory,
);
}