SelectionMenuItem class

Selection Menu Item

Constructors

SelectionMenuItem({required String getName(), required Widget icon(EditorState editorState, bool onSelected, SelectionMenuStyle style), required List<String> keywords, required SelectionMenuItemHandler handler})
SelectionMenuItem.node({required String getName(), required IconData iconData, required List<String> keywords, required Node nodeBuilder(EditorState editorState, BuildContext context), bool insertBefore(EditorState editorState, Node node)?, bool replace(EditorState editorState, Node node)?, Selection? updateSelection(EditorState editorState, Path insertPath, bool replaced, bool insertedBefore)?})
Creates a selection menu entry for inserting a Node. getName and iconData define the appearance within the selection menu.
factory

Properties

deleteSlash bool
getter/setter pair
handler SelectionMenuItemHandler
latefinal
hashCode int
The hash code for this object.
no setterinherited
icon Widget Function(EditorState editorState, bool onSelected, SelectionMenuStyle style)
final
keywords List<String>
Customizes keywords for item.
final
name String
no setter
onSelected VoidCallback?
getter/setter pair
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