instance property

The default instance of FlutterCodeScannerPlatform to use.

Defaults to MethodChannelFlutterCodeScanner.

Implementation

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

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

Implementation

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