NetworkTranslationLoader class

Implemented types
Annotations

Constructors

NetworkTranslationLoader(String url, {Map<String, String>? headers})
Creates a TranslationLoader instance that loads from a URL. The URL must support returning a JSON key / value map via a GET call.

Properties

hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
final

Methods

load(String language, Translator translator) Future<Map<String, String>>
The returned Future will wait until the JSON data is loaded and processed from the network and call and then resolve with resulting values.
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