MethodChannelMacMenuBar class
The method channel implementation of MacMenuBarPlatform.
This class implements the platform interface using platform channels to communicate with the native platform code. It handles the method channel communication and manages the callbacks for menu actions.
This class should not be instantiated directly. Instead, access it through MacMenuBarPlatform.instance.
- Inheritance
-
- Object
- PlatformInterface
- MacMenuBarPlatform
- MethodChannelMacMenuBar
Constructors
- MethodChannelMacMenuBar()
- Constructs a MethodChannelMacMenuBar and sets up the method call handler.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to communicate with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handleMethodCall(
MethodCall call) → Future - Handles method calls from the native platform.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setOnCopyFromMenu(
Future< bool> callback()?) → void -
Sets the callback that will be invoked when the Copy menu item is selected.
override
-
setOnCutFromMenu(
Future< bool> callback()?) → void -
Sets the callback that will be invoked when the Cut menu item is selected.
override
-
setOnPasteFromMenu(
Future< bool> callback()?) → void -
Sets the callback that will be invoked when the Paste menu item is selected.
override
-
setOnSelectAllFromMenu(
Future< bool> callback()?) → void -
Sets the callback that will be invoked when the Select All menu item is selected.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited