TextOptions class Null safety

Configuration options for Tool.text.

Constructors

TextOptions({List<TextAction>? actions, ColorPalette? backgroundColors, List<StickerCanvasAction>? canvasActions, Color? defaultTextColor, List<Font>? fonts, ColorPalette? textColors})
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
backgroundColors ColorPalette?
Defines all available colors that can be applied to the background. The color pipette is always added. [...]
final
canvasActions List<StickerCanvasAction>?
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. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited