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