RestClientTranslationLoader class
- Implemented types
-
- Annotations
-
Constructors
-
RestClientTranslationLoader({Authorizer? authorizer, Client? client, Reporter? reporter, required Request request, int retryCount = 0, Duration retryDelay = const Duration(seconds: 1), DelayStrategy? retryDelayStrategy, Duration? timeout})
-
A more powerful version of the simple
network
factory. Tihs gives full
control over the way the network call is executed. This stillrequires the
response from the network call result in a JSON key / value map.
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