Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
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