FlutterGemma class

An implementation of FlutterGemmaPlugin that uses method channels.

Inheritance

Constructors

FlutterGemma()

Properties

eventChannel EventChannel
final
hashCode int
The hash code for this object.
no setterinherited
isInitialized Future<bool>
no setteroverride
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getChatResponse({required Iterable<Message> messages, int chatContextLength = 4}) Future<String?>
inherited
getChatResponseAsync({required Iterable<Message> messages, int chatContextLength = 4}) Stream<String?>
inherited
getResponse({required String prompt}) Future<String?>
override
getResponseAsync({required String prompt}) Stream<String?>
override
init({int maxTokens = 1024, double temperature = 1.0, int randomSeed = 1, int topK = 1}) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited