CropRotateEditor.file constructor

CropRotateEditor.file(
  1. File file, {
  2. Key? key,
  3. required CropRotateEditorInitConfigs initConfigs,
})

Constructs a CropRotateEditor widget with an image loaded from a file.

Implementation

factory CropRotateEditor.file(
  File file, {
  Key? key,
  required CropRotateEditorInitConfigs initConfigs,
}) {
  return CropRotateEditor._(
    key: key,
    editorImage: EditorImage(file: file),
    initConfigs: initConfigs,
  );
}