ChromeSafariBrowserMenuItem class

Class that represents a custom menu item for a ChromeSafariBrowser instance.

NOTE: Not available in an Android Trusted Web Activity.

Supported Platforms/Implementations:

  • Android
  • iOS

Constructors

ChromeSafariBrowserMenuItem({required int id, required String label, UIImage? image, @Deprecated("Use onClick instead") void action(String url, String title)?, void onClick(WebUri? url, String title)?})

Properties

action ↔ (void Function(String url, String title)?)
Use onClick instead.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
The menu item id. It should be different from ChromeSafariBrowserActionButton.id.
getter/setter pair
image UIImage?
Item image.
getter/setter pair
label String
The label of the menu item.
getter/setter pair
onClick ↔ (void Function(WebUri? url, String title)?)
Callback function to be invoked when the menu item is clicked
getter/setter pair
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
toJson() Map<String, dynamic>
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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