getFavicon method

Future<Uint8List?> getFavicon({
  1. required WebUri url,
  2. FaviconImageFormat faviconImageFormat = FaviconImageFormat.PNG,
})

Gets the favicon bytes for the given favicon url.

faviconImageFormat specifies the favicon image format to return.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • url: all platforms
  • faviconImageFormat: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<Uint8List?> getFavicon({
  required WebUri url,
  FaviconImageFormat faviconImageFormat = FaviconImageFormat.PNG,
}) => platform.getFavicon(url: url, faviconImageFormat: faviconImageFormat);