ChromeSafariBrowserMenuItem constructor

ChromeSafariBrowserMenuItem({
  1. required int id,
  2. required String label,
  3. UIImage? image,
  4. @Deprecated("Use onClick instead") void action(
    1. String,
    2. String
    )?,
  5. void onClick(
    1. WebUri?,
    2. String
    )?,
})

NOTE for Android native WebView: Not available in an Android Trusted Web Activity.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS

Implementation

ChromeSafariBrowserMenuItem(
    {required this.id,
    required this.label,
    this.image,
    @Deprecated("Use onClick instead") this.action,
    this.onClick});