LocalinoRemoteApi class abstract

Constructors

LocalinoRemoteApi()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLocalCache(String locale) Future<Map<String, dynamic>>
Returns translations for given locale from local cache. {'app_name': 'Super app', 'another_key': 'another translation'}
getRemoteSetup(String space, String project) Future<Map<String, dynamic>>
Returns setup for given space and project from remote server. Filter timestamp to specify border and return only changes.
getRemoteTranslations(String locale, {DateTime? timestamp, String? version}) Future<Map<String, dynamic>>
Returns translations for given locale from remote server. Filter timestamp to specify border and return only changes. Filter version to fetch versioned translations. {'app_name': 'Super app', 'another_key': 'another translation'}
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setLocalCache(String locale, Map<String, dynamic> translations, [DateTime? timestamp]) Future<void>
Stores translations for given locale to local cache. Provide empty Map to clear cache for given locale.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited