TextEditorCallbacks class
A class representing callbacks for the text editor.
- Inheritance
-
- Object
- StandaloneEditorCallbacks
- TextEditorCallbacks
Constructors
-
TextEditorCallbacks({ValueChanged<
String> ? onChanged, VoidCallback? onEditingComplete, ValueChanged<int> ? onColorChanged, ValueChanged<String> ? onSubmitted, ValueChanged<TextAlign> ? onTextAlignChanged, ValueChanged<double> ? onFontScaleChanged, ValueChanged<LayerBackgroundMode> ? onBackgroundModeChanged, dynamic onInit()?, dynamic onAfterViewInit()?, dynamic onDone()?, dynamic onCloseEditor()?, UpdateUiCallback? onUpdateUI}) -
Creates a new instance of TextEditorCallbacks.
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 -
onBackgroundModeChanged
→ ValueChanged<
LayerBackgroundMode> ? -
A callback that is called when the background mode is changed.
final
-
onChanged
→ ValueChanged<
String> ? -
A callback that is called when the value changes.
final
- onCloseEditor → dynamic Function()?
-
A callback function that is triggered when the editor is closed.
finalinherited
-
onColorChanged
→ ValueChanged<
int> ? -
A callback that is called when the color is changed.
final
- onDone → dynamic Function()?
-
A callback function that is triggered when the editing is done.
finalinherited
- onEditingComplete → VoidCallback?
-
A callback that is called when the editing is complete.
final
-
onFontScaleChanged
→ ValueChanged<
double> ? -
A callback that is called when the font scale is changed.
final
- onInit → dynamic Function()?
-
Called when this object is inserted into the tree.
finalinherited
- onRedo → dynamic Function()?
-
A callback function that is triggered when the redo action is performed.
finalinherited
-
onSubmitted
→ ValueChanged<
String> ? -
A callback that is called when the value is submitted.
final
-
onTextAlignChanged
→ ValueChanged<
TextAlign> ? -
A callback that is called when the text alignment is changed.
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
-
handleBackgroundModeChanged(
LayerBackgroundMode newMode) → void - Handles the background mode change event.
-
handleChanged(
String newValue) → void - Handles the value change event.
-
handleCloseEditor(
) → void -
Handles the close editor action.
inherited
-
handleColorChanged(
int newColor) → void - Handles the color change event.
-
handleDone(
) → void -
Handles the done action.
inherited
-
handleEditingComplete(
) → void - Handles the editing complete event.
-
handleFontScaleChanged(
double newScale) → void - Handles the font scale change event.
-
handleRedo(
) → void -
Handles the redo action.
inherited
-
handleSubmitted(
String newValue) → void - Handles the value submitted event.
-
handleTextAlignChanged(
TextAlign newTextAlign) → void - Handles the text alignment change 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