instance property

BarcodeDetectionImpl get instance

The default instance of BarcodeDetectionImpl to use.

Implementation

static BarcodeDetectionImpl get instance {
  final instance = _instance;
  if (instance == null) {
    throw UnimplementedError('Barcode is not implemented on this platform.');
  }
  return instance;
}
set instance (BarcodeDetectionImpl instance)

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

Implementation

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