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
write-only
- client → ClientType
-
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation ) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns 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