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