instance property

FlutterGemmaPlugin get instance

The default instance of FlutterGemmaPlugin to use.

Defaults to FlutterGemma.

Implementation

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

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

Implementation

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