InAppBrowserMenuItem class

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

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Constructors

InAppBrowserMenuItem({dynamic icon, Color? iconColor, required int id, void onClick()?, int? order, bool showAsAction = false, required String title})
Officially Supported Platforms/Implementations:

Properties

hashCode int
The hash code for this object.
no setterinherited
icon ↔ dynamic
Item icon.
getter/setter pair
iconColor Color?
Icon color.
getter/setter pair
id int
The menu item id.
getter/setter pair
onClick ↔ (void Function()?)
Callback function to be invoked when the menu item is clicked
getter/setter pair
order int?
Item order.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAsAction bool
Show this item as a button in the Action Bar.
getter/setter pair
title String
The title of the menu item.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts instance to a map.
toMap() Map<String, dynamic>
Converts instance to a map.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map) InAppBrowserMenuItem?
Gets a possible InAppBrowserMenuItem instance from a Map value.