NativeToolboxMenu class abstract final

Presents the platform's native text-selection menu.

No fallback is drawn: without a platform implementation, showMenu returns false and no menu appears.

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Properties

onAction Stream<int>
Emits the index of the selected item. Emits the index (into the actions list) of the chosen item.
final
onDismiss Stream<void>
Emits when the native menu is dismissed. Emits when the native menu is dismissed without choosing an item.
final

Static Methods

dismissMenu() Future<void>
Dismisses the native menu if it is open.
showMenu({required Rect anchorRect, required List<NativeToolboxAction> actions, required bool selectionMode, bool topRight = false}) Future<bool>
Shows the platform's native selection menu anchored at anchorRect.