instance property

FlameGoPlatform get instance

The default instance of FlameGoPlatform to use.

Defaults to MethodChannelFlameGo.

Implementation

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

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

Implementation

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