instance property

AmberflutterPlatform get instance

The default instance of AmberflutterPlatform to use.

Defaults to MethodChannelAmberflutter.

Implementation

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

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

Implementation

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