instance property
CardScanPlatform
get
instance
The default instance of CardScanPlatform to use.
Defaults to MethodChannelCardScan.
Implementation
static CardScanPlatform get instance => _instance;
set
instance
(CardScanPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends CardScanPlatform when they register themselves.
Implementation
static set instance(CardScanPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}