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