TextOptions class

Configuration options for Tool.text.

Constructors

TextOptions({List<TextAction>? actions, ColorPalette? backgroundColors, List<TextCanvasAction>? canvasActions, Color? defaultTextColor, List<Font>? fonts, ColorPalette? textColors, bool? allowEmojis})
Creates new TextOptions.

Properties

actions List<TextAction>?
Defines all allowed actions for the text tool menu. Only buttons for allowed actions are visible and shown in the given order.
final
allowEmojis bool?
Whether the user can use emojis as text input. Emojis are not cross-platform compatible. If you use the serialization feature to share edits across different platforms emojis will be rendered with the system's local set of emojis and will appear differently.
final
backgroundColors ColorPalette?
Defines all available colors that can be applied to the background. The color pipette is always added.
final
canvasActions List<TextCanvasAction>?
Defines all allowed actions for the text tool that are displayed as overlay buttons on the canvas.
final
defaultTextColor Color?
Defines the default text color for newly created text.
final
fonts List<Font>?
Defines all available fonts. New items can be mixed and matched with existing ones.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textColors ColorPalette?
Defines all available colors that can be applied to the text. The color pipette is always added.
final

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