instance property

DemoScanPlatform get instance

The default instance of DemoScanPlatform to use.

Defaults to MethodChannelDemoScan.

Implementation

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

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

Implementation

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