instance property
AiBarcodeCreatorPlatform
instance
The default instance of AiBarcodeCreatorPlatform to use.
Platform-specific plugins should override this with their own platform-specific class that extends AiBarcodeCreatorPlatform when they register themselves.
Implementation
static AiBarcodeCreatorPlatform get instance => _instance;
Instance update
Implementation
static set instance(AiBarcodeCreatorPlatform instance) {
if (!instance.isMock) {
try {
instance._verifyProvidesDefaultImplementations();
} on NoSuchMethodError catch (_) {
throw AssertionError(
'Platform interfaces must not be implemented with `implements`');
}
}
_instance = instance;
}