instance property

NumberGamePlatform get instance

The default instance of NumberGamePlatform to use.

Defaults to MethodChannelNumberGame.

Implementation

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

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

Implementation

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