TranslatorClient class

Constructors

TranslatorClient.new({required TranslatorOpenAIClient mainClient})

Properties

hashCode int
The hash code for this object.
no setterinherited
mainClient TranslatorOpenAIClient
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

detect(String text) Future
METHOD FOR DETECTING A STRING OF TEXT LANGUAGE
detectTranslate(String text, dynamic toLang) Future
METHOD FOR DETECTING AND TRANSLATING A MESSAGE
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate(String fromLanguage, String toLanguage, String text) Future<Map<String, dynamic>>
METHOD FOR TRANSLATING A TEXT

Operators

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