init method
void
init({})
initialize the controller after DynamicImageCrop build.
Implementation
void init({
required Uint8List image,
required ui.ImageByteFormat imageByteFormat,
required void Function(Uint8List, int, int) callback,
required GlobalKey<FigureShapeViewState> painterKey,
required GlobalKey<DrawingViewState> drawingKey,
}) {
imageNotifier.set(image, imageByteFormat: imageByteFormat);
_callback = callback;
_painterKey = painterKey;
_drawingKey = drawingKey;
}