action method

  1. @override
Future<void> action(
  1. 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,
  );
}