setOptions method

Future<void> setOptions({
  1. required InAppWebViewGroupOptions options,
})

Sets the WebView options with the new options and evaluates them.

Supported Platforms/Implementations:

  • Android native WebView
  • iOS

Implementation

Future<void> setOptions({required InAppWebViewGroupOptions options}) async {
  Map<String, dynamic> args = <String, dynamic>{};

  args.putIfAbsent('options', () => options.toMap());
  await _channel.invokeMethod('setOptions', args);
}