ContextMenu class

Represents a context menu data model.

Constructors

ContextMenu({required List<ContextMenuEntry> entries, Offset? position, EdgeInsets? padding, BorderRadiusGeometry? borderRadius, double? maxWidth, Clip? clipBehavior, BoxDecoration? boxDecoration, Map<ShortcutActivator, VoidCallback>? shortcuts})

Properties

borderRadius BorderRadiusGeometry?
The border radius around the context menu.
getter/setter pair
boxDecoration BoxDecoration?
The decoration of the context menu.
getter/setter pair
clipBehavior Clip
The clip behavior of the context menu.
getter/setter pair
entries List<ContextMenuEntry>
The entries of the context menu.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
maxWidth double
The maximum width of the context menu.
getter/setter pair
padding EdgeInsets
The padding of the context menu.
getter/setter pair
position Offset?
The position of the context menu.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortcuts Map<ShortcutActivator, VoidCallback>
A map of shortcuts to be bound to the context menu and the nested context menus.
getter/setter pair

Methods

copyWith({Offset? position, List<ContextMenuEntry>? entries, EdgeInsets? padding, BorderRadiusGeometry? borderRadius, double? maxWidth, Clip? clipBehavior, BoxDecoration? boxDecoration}) ContextMenu
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show<T>(BuildContext context) Future<T?>
A shortcut method to show the context menu.
toString() String
A string representation of this object.
inherited

Operators

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