instance property

The default instance of FlDroidConnectionPlatform to use.

Defaults to MethodChannelFlDroidConnection.

Implementation

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

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

Implementation

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