ContextMenuButtonKind class final
The kinds of buttons that can appear in a context menu by default.
New kinds may be added in the future, so switches on this class should
include a wildcard (_) case.
See also:
- ContextMenuButtonItem, which uses this class to describe a button in a context menu.
- Annotations
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- copy → const ContextMenuButtonKind
- A button that copies the current text selection.
- custom → const ContextMenuButtonKind
- Anything other than the default button kinds.
- cut → const ContextMenuButtonKind
- A button that cuts the current text selection.
- delete → const ContextMenuButtonKind
- A button that deletes the current text selection.
- liveTextInput → const ContextMenuButtonKind
- A button for starting Live Text input.
- lookUp → const ContextMenuButtonKind
- A button that looks up the current text selection.
- paste → const ContextMenuButtonKind
- A button that pastes the clipboard contents into the focused text field.
- searchWeb → const ContextMenuButtonKind
- A button that launches a web search for the current text selection.
- selectAll → const ContextMenuButtonKind
- A button that selects all the contents of the focused text field.
- A button that displays the share screen for the current text selection.
- translate → const ContextMenuButtonKind
- A button that launches a translation popup for the current text selection.
-
values
→ const List<
ContextMenuButtonKind> - All of the kinds currently known to this version of Flutter.