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