TextEditorConfigs class
Configuration options for a text editor.
TextEditorConfigs
allows you to define settings for a text editor,
including whether the editor is enabled, which text formatting options
are available, and the initial font size.
Example usage:
TextEditorConfigs(
enabled: true,
canToggleTextAlign: true,
canToggleBackgroundMode: true,
initFontSize: 24.0,
);
Constructors
- TextEditorConfigs({bool enabled = true, bool canToggleTextAlign = true, bool canToggleBackgroundMode = true, double initFontSize = 24.0, TextAlign initialTextAlign = TextAlign.center, LayerBackgroundColorModeE initialBackgroundColorMode = LayerBackgroundColorModeE.backgroundAndColor})
-
Creates an instance of TextEditorConfigs with optional settings.
const
Properties
- canToggleBackgroundMode → bool
-
Determines if the background mode can be toggled.
final
- canToggleTextAlign → bool
-
Determines if the text alignment options can be toggled.
final
- enabled → bool
-
Indicates whether the text editor is enabled.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initFontSize → double
-
The initial font size for text.
final
- initialBackgroundColorMode → LayerBackgroundColorModeE
-
The initial background color mode for the layer.
final
- initialTextAlign → TextAlign
-
The initial text alignment for the layer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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