BubbleMenuRequest class

Information about the bubble a context menu was requested for.

Passed to every menu callback so a single builder can serve many bubbles.

Constructors

BubbleMenuRequest({required Message message, required bool isSender, required Offset globalPosition, required Rect bubbleRect})
Creates a BubbleMenuRequest.
const

Properties

bubbleRect → Rect
Global bounds of the bubble, useful for anchoring a custom menu to it.
final
globalPosition → Offset
Global position of the pointer that opened the menu (the finger for a long press, the cursor for a right click).
final
hashCode → int
The hash code for this object.
no setterinherited
isSender → bool
true for a sender bubble, false for a receiver bubble.
final
message → Message
The message the menu was opened for.
final
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