LikeRepository<T> class
Constructors
-
LikeRepository({required SharedPrefsService<
T> prefsService, required String? getId(T item)})
Properties
- getId → String? Function(T item)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
prefsService
→ SharedPrefsService<
T> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear(
) → Future< void> -
delete(
T item) → Future< void> -
getAll(
) → Future< List< T> > -
isLiked(
T item) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toggleLike(
T item) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited