ChromeSafariBrowserActionButton class
Class that represents a custom action button for a PlatformChromeSafariBrowser instance.
NOTE for Android native WebView: Not available in an Android Trusted Web Activity.
Officially Supported Platforms/Implementations:
- Android native WebView
Constructors
- ChromeSafariBrowserActionButton({required int id, required Uint8List icon, required String description, @Deprecated("Use onClick instead") void action(String, String)?, void onClick(WebUri?, String)?, bool shouldTint = false})
- NOTE for Android native WebView: Not available in an Android Trusted Web Activity.
Properties
- action ↔ void Function(String, String)?
-
Use onClick instead.
getter/setter pair
- description ↔ String
-
The description for the button. To be used for accessibility.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon ↔ Uint8List
-
The icon byte data.
getter/setter pair
- id ↔ int
-
The action button id. It should be different from the ChromeSafariBrowserMenuItem.id.
getter/setter pair
- onClick ↔ void Function(WebUri?, String)?
-
Callback function to be invoked when the action button is clicked
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shouldTint ↔ bool
-
Whether the action button should be tinted.
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) → ChromeSafariBrowserActionButton? - Gets a possible ChromeSafariBrowserActionButton instance from a Map value.