getProductImageChange method

  1. @override
ProductImage getProductImageChange()
override

Returns a fake value that means: "remove the previous value when merging".

If we use this task, it means that we took a brand new picture. Therefore, all previous crop parameters are attached to a different imageid, and to avoid confusion we need to clear them. cf. UpToDateChanges._overwrite regarding images field.

Implementation

@override
ProductImage getProductImageChange() => ProductImage(
  field: ImageField.fromOffTag(imageField)!,
  language: getLanguage(),
  size: ImageSize.ORIGINAL,
);