instance property

WebViewPlatform? get instance

The instance of WebViewPlatform to use.

Implementation

static WebViewPlatform? get instance => _instance;
set instance (WebViewPlatform? instance)

Platform-specific plugins should set this with their own platform-specific class that extends WebViewPlatform when they register themselves.

Implementation

static set instance(WebViewPlatform? instance) {
  if (instance == null) {
    throw AssertionError(
        'Platform interfaces can only be set to a non-null instance');
  }

  PlatformInterface.verify(instance, _token);
  _instance = instance;
}