PaintEditorCallbacks class
A class representing callbacks for the paint editor.
- Inheritance
-
- Object
- StandaloneEditorCallbacks
- PaintEditorCallbacks
Constructors
-
PaintEditorCallbacks({ValueChanged<
PaintModeE> ? onPaintModeChanged, dynamic onDrawingDone()?, dynamic onColorChanged()?, ValueChanged<double> ? onLineWidthChanged, ValueChanged<bool> ? onToggleFill, GestureScaleStartCallback? onEditorZoomScaleStart, GestureScaleUpdateCallback? onEditorZoomScaleUpdate, GestureScaleEndCallback? onEditorZoomScaleEnd, ValueChanged<double> ? onOpacityChange, dynamic onInit()?, dynamic onAfterViewInit()?, dynamic onUndo()?, dynamic onRedo()?, dynamic onDone()?, dynamic onCloseEditor()?, UpdateUiCallback? onUpdateUI}) -
Creates a new instance of PaintEditorCallbacks.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- onColorChanged → dynamic Function()?
-
A callback function that is triggered when the color is changed.
final
- onDone → dynamic Function()?
-
A callback function that is triggered when the editing is done.
finalinherited
- onDrawingDone → dynamic Function()?
-
A callback function that is triggered when drawing is done.
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
-
onLineWidthChanged
→ ValueChanged<
double> ? -
A callback function that is triggered when the line width changes.
final
-
onOpacityChange
→ ValueChanged<
double> ? -
A callback function that is triggered when the opacity changed.
final
-
onPaintModeChanged
→ ValueChanged<
PaintModeE> ? -
A callback function that is triggered when the paint mode changes.
final
- onRedo → dynamic Function()?
-
A callback function that is triggered when the redo action is performed.
finalinherited
-
onToggleFill
→ ValueChanged<
bool> ? -
A callback function that is triggered when the fill mode is toggled.
final
- onUndo → dynamic Function()?
-
A callback function that is triggered when the undo action is performed.
finalinherited
- 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
-
handleCloseEditor(
) → void -
Handles the close editor action.
inherited
-
handleColorChanged(
) → void - Handles the color changed event.
-
handleDone(
) → void -
Handles the done action.
inherited
-
handleDrawingDone(
) → void - Handles the drawing done event.
-
handleLineWidthChanged(
double newWidth) → void - Handles the line width change event.
-
handleOpacity(
double opacity) → void - Handles the opacity change event.
-
handlePaintModeChanged(
PaintModeE newMode) → void - Handles the paint mode change event.
-
handleRedo(
) → void -
Handles the redo action.
inherited
-
handleToggleFill(
bool fill) → void - Handles the toggle fill event.
-
handleUndo(
) → void -
Handles the undo action.
inherited
-
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