setOptions method Null safety

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

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

Implementation

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

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