ProductCropAgainHelper class
Crop Helper for product images: from an existing image.
- Inheritance
-
- Object
- CropHelper
- ProductCropHelper
- ProductCropAgainHelper
Constructors
- ProductCropAgainHelper({required ImageField imageField, required OpenFoodFactsLanguage language, required String barcode, required ProductType? productType, required int imageId})
Properties
- barcode → String
-
finalinherited
- enableEraser → bool
-
Should we display the eraser with the crop grid?
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- imageField → ImageField
-
finalinherited
- imageId → int
-
final
- language → OpenFoodFactsLanguage
-
finalinherited
- productType → ProductType?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLocalCropRect(
CropController controller) → Rect -
Returns the crop rect according to local cropping method * factor.
inherited
-
getPageTitle(
AppLocalizations appLocalizations) → String -
Page title of the crop page.
inherited
-
getProcessIcon(
) → Widget -
Icon of the "process!" button.
inherited
-
getProcessLabel(
AppLocalizations appLocalizations) → String -
Label of the "process!" button.
inherited
-
isNewImage(
) → bool -
Is that a new image, or an already cropped one?
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
{required BuildContext context, required CropController controller, required File inputFile, required int inputFullWidth, required int inputFullHeight, required File preCroppedFile, required Directory directory, required int sequenceNumber, required List< Offset> offsets}) → Future<CropParameters> -
Processes the crop operation.
override
-
refresh(
BuildContext context) → Future< void> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited