GoogleTranslator class
This library is a Dart implementation of Google Translate API
author
Gabriel N. Pacheco.
Constructors
- GoogleTranslator({ClientType client = ClientType.siteGT})
Properties
- baseUrl ← String
-
Sets base URL for countries that default URL doesn't work
no getter
- client → ClientType
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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 sourceText, {String from = 'auto', String to = 'en'}) → Future< Translation> - Translates texts from specified language to another
-
translateAndPrint(
String text, {String from = 'auto', String to = 'en'}) → void - Translates and prints directly
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited