openData method

Future<void> openData({
  1. required String data,
  2. String mimeType = "text/html",
  3. String encoding = "utf8",
  4. WebUri? baseUrl,
  5. WebUri? historyUrl,
  6. InAppBrowserClassSettings? settings,
})

Opens the PlatformInAppBrowser instance with data as a content, using baseUrl as the base URL for it.

The mimeType parameter specifies the format of the data. The default value is "text/html".

The encoding parameter specifies the encoding of the data. The default value is "utf8".

settings: Settings for the PlatformInAppBrowser.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Windows

Implementation

Future<void> openData({
  required String data,
  String mimeType = "text/html",
  String encoding = "utf8",
  WebUri? baseUrl,
  WebUri? historyUrl,
  InAppBrowserClassSettings? settings,
}) {
  throw UnimplementedError(
    'openData is not implemented on the current platform',
  );
}