instance property

CortexPlatform instance

The default instance of MethodChannelCortex to use.

Defaults to MethodChannelCortex.

Implementation

static CortexPlatform get instance => _instance;
void instance=(CortexPlatform instance)

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

Implementation

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