instance property

FlutterRfidPlatform get instance

The default instance of FlutterRfidPlatform to use.

Defaults to MethodChannelFlutterRfid.

Implementation

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

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

Implementation

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