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.

Properties

authorizer → Authorizer?
final
client → Client
final
hashCode int
The hash code for this object.
no setterinherited
reporter → Reporter?
final
request → Request
final
retryCount int
final
retryDelay Duration
final
retryDelayStrategy → DelayStrategy?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration?
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