ToolbarOptions class
Toolbar configuration for EditableText.
Toolbar is a context menu that will show up when user right click or long press the EditableText. It includes several options: cut, copy, paste, and select all.
EditableText and its derived widgets have their own default ToolbarOptions. Create a custom ToolbarOptions if you want explicit control over the toolbar option.
- Annotations
-
- @Deprecated('Use `contextMenuBuilder` instead. ' 'This feature was deprecated after v3.3.0-0.5.pre.')
Constructors
- ToolbarOptions({bool copy = false, bool cut = false, bool paste = false, bool selectAll = false})
-
Create a toolbar configuration with given options.
const
Properties
- copy → bool
-
Whether to show copy option in toolbar.
final
- cut → bool
-
Whether to show cut option in toolbar.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- paste → bool
-
Whether to show paste option in toolbar.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectAll → bool
-
Whether to show select all option in toolbar.
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
Constants
- empty → const ToolbarOptions
- An instance of ToolbarOptions with no options enabled.