MainEditorCallbacks class

A class representing callbacks for the main editor.

Inheritance

Constructors

MainEditorCallbacks({dynamic onTap()?, dynamic onDoubleTap()?, dynamic onLongPress()?, PopInvokedCallback? onPopInvoked, ValueChanged<Layer>? onAddLayer, ValueChanged<Layer>? onUpdateLayer, ValueChanged<Layer>? onRemoveLayer, ValueChanged<SubEditor>? onOpenSubEditor, ValueChanged<SubEditor>? onCloseSubEditor, ValueChanged<ScaleStartDetails>? onScaleStart, ValueChanged<ScaleUpdateDetails>? onScaleUpdate, ValueChanged<ScaleEndDetails>? onScaleEnd, GestureScaleStartCallback? onEditorZoomScaleStart, GestureScaleUpdateCallback? onEditorZoomScaleUpdate, GestureScaleEndCallback? onEditorZoomScaleEnd, dynamic onInit()?, dynamic onAfterViewInit()?, 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
onAfterViewInit → (dynamic Function()?)
Called when this object is inserted into the tree and rendered in the build.
finalinherited
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
onEditorZoomScaleEnd GestureScaleEndCallback?
Called when the user ends a pan or scale gesture on the widget.
final
onEditorZoomScaleStart GestureScaleStartCallback?
Called when the user begins a pan or scale gesture on the editor.
final
onEditorZoomScaleUpdate GestureScaleUpdateCallback?
Called when the user updates a pan or scale gesture on the editor.
final
onInit → (dynamic Function()?)
Called when this object is inserted into the tree.
finalinherited
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
onPopInvoked PopInvokedCallback?
Called after a route pop was handled.
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