apply method

  1. @override
Future<void> apply({
  1. required ProcessGlobalConfigSettings settings,
})

Applies the configuration to be used by WebView on loading. This method can only be called once.

Calling this method will not cause WebView to be loaded and will not block the calling thread.

Officially Supported Platforms/Implementations:

Implementation

@override
Future<void> apply({required ProcessGlobalConfigSettings settings}) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent("settings", () => settings.toMap());
  await channel?.invokeMethod('apply', args);
}