FuturePreferencesRepository<T> class

Repository class that takes DesSer<T> and allows you to save and read your objects.

Constructors

FuturePreferencesRepository(DesSer<T> desSer)

Properties

desSer DesSer<T>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
prefs Future<SharedPreferences>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

findAll() Future<List<T>>
Returns all saved objects from the repository
findAllWhere(bool test(T element)) Future<List<T>>
findFirstWhere(bool test(T element), {T orElse()?}) Future<T>
findOne(int i) Future<T?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove(int index) Future<List<T>>
removeAll() → void
removeWhere(bool test(T element)) → void
save(T t) Future<int>
Saves new object in repository
saveAll(List<T> list) Future<void>
Saves all objects in repository
toString() String
A string representation of this object.
inherited
update(int index, T t) → void
updateWhere(bool test(T t), T t) → void

Operators

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