changeImageFile method

void changeImageFile(
  1. File file, {
  2. ImageByteFormat? imageByteFormat,
})

Change the image File to crop without setState((){}).

Implementation

void changeImageFile(File file, {ui.ImageByteFormat? imageByteFormat}) {
  imageNotifier.set(file.readAsBytesSync(), imageByteFormat: imageByteFormat);
}