instance property

EdgeGenAIPlatform get instance

The default instance of EdgeGenAIPlatform to use.

Defaults to MethodChannelEdgeGenAI.

Implementation

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

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

Implementation

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