instance property

ModernSimPlatform get instance

The default instance of ModernSimPlatform to use.

Defaults to MethodChannelModernSim.

Implementation

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

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

Implementation

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