instance property

FlutterOcrSdkPlatform get instance

The default instance of FlutterOcrSdkPlatform to use.

Defaults to MethodChannelFlutterOcrSdk.

Implementation

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

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

Implementation

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