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, 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
- 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
-
onLineWidthChanged
→ ValueChanged<
double> ? -
A callback function that is triggered when the line width changes.
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.
-
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