instance property

OnDeviceAiPlatform get instance

The default instance of OnDeviceAiPlatform to use.

Defaults to MethodChannelOnDeviceAi.

Implementation

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

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

Implementation

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