editImage static method

Future<Uint8List?> editImage({
  1. required Uint8List image,
  2. required ImageEditorOption imageEditorOption,
})

The image is a source of image.

The imageEditorOption option for edit image.

The method will return a Uint8List as image result.

If result is null, it means handle image error.

Implementation

static Future<Uint8List?> editImage({
  required Uint8List image,
  required ImageEditorOption imageEditorOption,
}) async {
  return platform.editImage(
    image: image,
    imageEditorOption: imageEditorOption,
  );
}