PhotoRepository class Null safety
The repository interface for handling photos.
- Implementers
Constructors
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.
-
getAllPhotos(
) → Future< Result< List< >Photo> > - Returns result with all available photos.
-
getPhoto(
PhotoId photoId) → Future< Result< Photo> > - Returns result with a single photo.
-
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.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited