instance property

GoodtoolsPlatform get instance

The default instance of GoodtoolsPlatform to use.

Defaults to MethodChannelGoodtools.

Implementation

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

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

Implementation

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