create static method

Future<Webview> create({
  1. CreateConfiguration? configuration,
})

Implementation

static Future<Webview> create({
  CreateConfiguration? configuration,
}) async {
  configuration ??= CreateConfiguration.platform();
  _init();
  final viewId = await _channel.invokeMethod(
    "create",
    configuration.toMap(),
  ) as int;
  final webview = WebviewImpl(viewId, _channel);
  _webviews.add(webview);
  return webview;
}