instance property

The default instance of P2pEnginePlatform to use.

Defaults to MethodChannelP2pEngine.

Implementation

static FlutterP2pEnginePlatform get instance => _instance;
set instance (FlutterP2pEnginePlatform instance)

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

Implementation

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