PlatformChromeSafariBrowser constructor

PlatformChromeSafariBrowser(
  1. PlatformChromeSafariBrowserCreationParams params
)

Implementation

factory PlatformChromeSafariBrowser(
    PlatformChromeSafariBrowserCreationParams params) {
  assert(
    InAppWebViewPlatform.instance != null,
    'A platform implementation for `flutter_inappwebview` has not been set. Please '
    'ensure that an implementation of `InAppWebViewPlatform` has been set to '
    '`InAppWebViewPlatform.instance` before use. For unit testing, '
    '`InAppWebViewPlatform.instance` can be set with your own test implementation.',
  );
  final PlatformChromeSafariBrowser chromeSafariBrowser = InAppWebViewPlatform
      .instance!
      .createPlatformChromeSafariBrowser(params);
  PlatformInterface.verify(chromeSafariBrowser, _token);
  return chromeSafariBrowser;
}