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