instance property
GameframeworkPlatform
get
instance
The default instance of GameframeworkPlatform to use.
Defaults to MethodChannelGameframework.
Implementation
static GameframeworkPlatform get instance => _instance;
set
instance
(GameframeworkPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends GameframeworkPlatform when they register themselves.
Implementation
static set instance(GameframeworkPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}