instance property

OcrFlutterWebPlatform get instance

The default instance of OcrFlutterWebPlatform to use.

Defaults to MethodChannelOcrFlutterWeb.

Implementation

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

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

Implementation

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