instance property

The default instance of FlutterP2pConnectionPlatform to use.

Defaults to MethodChannelFlutterP2pConnection.

Implementation

static FlutterP2pConnectionPlatform get instance => _instance;
void instance=(FlutterP2pConnectionPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends FlutterP2pConnectionPlatform when they register themselves.

Implementation

static set instance(FlutterP2pConnectionPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}