instance property

AppstackPluginPlatform get instance

The default instance of AppstackPluginPlatform to use.

Defaults to MethodChannelAppstackPlugin.

Implementation

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

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

Implementation

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