instance property

SimpleWidgetPlatform get instance

The default instance of SimpleWidgetPlatform to use.

Defaults to MethodChannelSimpleWidget.

Implementation

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

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

Implementation

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