instance property

SilkfpsPlatform get instance

The default instance of SilkfpsPlatform to use.

Defaults to MethodChannelSilkfps.

Implementation

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

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

Implementation

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