instance property

CabinetPlatform get instance

The default instance of CabinetPlatform to use.

Defaults to MethodChannelCabinet.

Implementation

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

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

Implementation

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