FuturePreferencesRepository<T> class
Repository class that takes DesSer<T> and allows you to save and read your objects.
Constructors
-
FuturePreferencesRepository(DesSer<
T> desSer)
Properties
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