getOptions method

Gets the current WebView options. Returns null if it wasn't able to get them.

Supported Platforms/Implementations:

  • Android native WebView
  • iOS

Implementation

Future<InAppWebViewGroupOptions?> getOptions() async {
  Map<String, dynamic> args = <String, dynamic>{};

  Map<dynamic, dynamic>? options =
      await _channel.invokeMethod('getOptions', args);
  if (options != null) {
    options = options.cast<String, dynamic>();
    return InAppWebViewGroupOptions.fromMap(options as Map<String, dynamic>);
  }

  return null;
}