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