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
    )?,
})

Officially Supported Platforms/Implementations:

  • Android WebView:
    • Not available in an Android Trusted Web Activity.
  • iOS WKWebView

Implementation

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