TRContextMenuController class final

Opens a TRContextMenu from code.

A surface that consumes the secondary pointer button itself, such as a terminal reporting mouse events, needs this to open the menu at a position it chose. Attach one controller to one TRContextMenu.

Constructors

TRContextMenuController()

Properties

hashCode int
The hash code for this object.
no setterinherited
isOpen bool
Whether the menu is showing.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

attach(TRContextMenuHost host) → void
Binds host as the menu this controller drives.
close() → void
Closes the menu if it is open.
detach(TRContextMenuHost host) → void
Unbinds host, ignoring a host that has already been replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openAt(Offset globalPosition) → void
Opens the menu at globalPosition, in global logical pixels.
toString() String
A string representation of this object.
inherited

Operators

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