PhotoRepositoryImpl class Null safety
The implementation for the photo repository.
- Implemented types
- Annotations
- @LazySingleton(as: PhotoRepository)
Constructors
- PhotoRepositoryImpl({required Logger logger, required PhotoDataSource dataSource, required PhotoLikeDataStorage likeDataStorage})
- Creates photo repository 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
-
getAlbumPhotos(
AlbumId albumId) → Future< Result< List< >Photo> > -
Returns result with all available photos in an album.
override
-
getAllPhotos(
) → Future< Result< List< >Photo> > -
Returns result with all available photos.
override
-
getPhoto(
PhotoId photoId) → Future< Result< Photo> > -
Returns result with a single photo.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
setPhotoLike(
PhotoId id, {required bool like}) → Future< Result< void> > -
Updates whether a given photo is liked or unliked.
override
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited