instance property

MlxLocalllmPlatform get instance

The default instance of MlxLocalllmPlatform to use.

Defaults to MethodChannelMlxLocalllm.

Implementation

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

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

Implementation

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