instance property

WebComponentsPlatform get instance

The default instance of WebComponentsPlatform to use.

Defaults to MethodChannelWebComponents.

Implementation

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

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

Implementation

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