instance property

The default instance of OcrPluginFlutterPlatform to use.

Defaults to MethodChannelOcrPluginFlutter.

Implementation

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

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

Implementation

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