PlatformWebAuthenticationSession.static constructor

PlatformWebAuthenticationSession.static()

Creates a new PlatformWebAuthenticationSession to access static methods.

Implementation

factory PlatformWebAuthenticationSession.static() {
  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 PlatformWebAuthenticationSession webAuthenticationSessionStatic =
      InAppWebViewPlatform.instance!
          .createPlatformWebAuthenticationSessionStatic();
  PlatformInterface.verify(webAuthenticationSessionStatic, _token);
  return webAuthenticationSessionStatic;
}