instance property

NativeWebPlatform get instance

The default instance of NativeWebPlatform to use.

Defaults to MethodChannelNativeWeb.

Implementation

static NativeWebPlatform get instance => _instance;
set instance (NativeWebPlatform instance)

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

Implementation

static set instance(NativeWebPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}