PhotoLikeDataStorageImpl class Null safety
Shared preferences implementation of the photo like data storage.
- Implemented types
- Annotations
- @LazySingleton(as: PhotoLikeDataStorage)
Constructors
- PhotoLikeDataStorageImpl( )
- Creates photo like data storage implementation.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
getPhotoLike(
{required String photoId}) → Future< bool> -
Returns if a given photo has been liked by the user.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setPhotoLike(
{required String photoId, required bool like}) → Future< void> -
Updates stored like value for a given photo id.
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited