instance property

The default instance of FlutterMulticastLockPlatform to use.

Defaults to MethodChannelFlutterMulticastLock.

Implementation

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

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

Implementation

static set instance(FlutterMulticastLockPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  instance.setExceptionOnUnsupportedPlatform(
    _instance.exceptionOnUnsupportedPlatform,
  );
  _instance = instance;
}