Local data source for translations.
This interface defines the methods for accessing and manipulating translations in the local database.
- Implementers
Constructors
- TranslationsLocalDataSource(String name)
-
Creates a new TranslationsLocalDataSource.
factory
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
-
addTranslation(
Translation translation) → Future< int> - Adds a translation to the local database.
-
clearTranslations(
) → Future< int> - Clears all translations from the local database.
-
deleteOldTranslations(
Duration duration) → Future< int> - Deletes old translations from the local database.
-
getTranslation(
String md5Hash, SolvroLocale translatedLangCode) → Future< Translation?> - Gets a translation from the local database.
-
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