MainEditorCallbacks class

A class representing callbacks for the main editor.

Inheritance

Constructors

MainEditorCallbacks({dynamic onTap()?, dynamic onDoubleTap()?, dynamic onLongPress()?, ValueChanged<Layer>? onAddLayer, ValueChanged<Layer>? onUpdateLayer, ValueChanged<Layer>? onRemoveLayer, ValueChanged<SubEditor>? onOpenSubEditor, ValueChanged<SubEditor>? onCloseSubEditor, ValueChanged<ScaleStartDetails>? onScaleStart, ValueChanged<ScaleUpdateDetails>? onScaleUpdate, ValueChanged<ScaleEndDetails>? onScaleEnd, UpdateUiCallback? onUpdateUI, dynamic onDone()?, dynamic onRedo()?, dynamic onUndo()?})
Creates a new instance of MainEditorCallbacks.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
onAddLayer ValueChanged<Layer>?
A callback function that is triggered when a layer is added.
final
onCloseEditor → (dynamic Function()?)
A callback function that is triggered when the editor is closed.
finalinherited
onCloseSubEditor ValueChanged<SubEditor>?
A callback function that is triggered when a sub-editor is closed.
final
onDone → (dynamic Function()?)
A callback function that is triggered when the editing is done.
finalinherited
onDoubleTap → (dynamic Function()?)
A callback function that is triggered when the user doubleTap on the body.
final
onLongPress → (dynamic Function()?)
A callback function that is triggered when the user longPress on the body.
final
onOpenSubEditor ValueChanged<SubEditor>?
A callback function that is triggered when a sub-editor is opened.
final
onRedo → (dynamic Function()?)
A callback function that is triggered when the redo action is performed.
finalinherited
onRemoveLayer ValueChanged<Layer>?
A callback function that is triggered when a layer is removed.
final
onScaleEnd ValueChanged<ScaleEndDetails>?
A callback function that is triggered when a scaling gesture ends.
final
onScaleStart ValueChanged<ScaleStartDetails>?
A callback function that is triggered when a scaling gesture starts.
final
onScaleUpdate ValueChanged<ScaleUpdateDetails>?
A callback function that is triggered when a scaling gesture is updated.
final
onTap → (dynamic Function()?)
A callback function that is triggered when the user tap on the body.
final
onUndo → (dynamic Function()?)
A callback function that is triggered when the undo action is performed.
finalinherited
onUpdateLayer ValueChanged<Layer>?
A callback function that is triggered when a layer is updated.
final
onUpdateUI UpdateUiCallback?
A callback function that can be used to update the UI from custom widgets.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

handleAddLayer(Layer layer) → void
Handles the addition of a layer.
handleCloseEditor() → void
Handles the close editor action.
inherited
handleCloseSubEditor(SubEditor subEditor) → void
Handles the closing of a sub-editor.
handleDone() → void
Handles the done action.
inherited
handleOpenSubEditor(SubEditor subEditor) → void
Handles the opening of a sub-editor.
handleRedo() → void
Handles the redo action.
inherited
handleRemoveLayer(Layer layer) → void
Handles the removal of a layer.
handleScaleEnd(ScaleEndDetails details) → void
Handles the end of a scaling gesture.
handleScaleStart(ScaleStartDetails details) → void
Handles the start of a scaling gesture.
handleScaleUpdate(ScaleUpdateDetails details) → void
Handles the update of a scaling gesture.
handleUndo() → void
Handles the undo action.
inherited
handleUpdateLayer(Layer layer) → void
Handles the update of a layer.
handleUpdateUI() → void
Handles the update UI action.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited