getAlbumPhotos method Null safety

  1. @GET("/albums/{albumId}/photos")
  2. @override
Future<List<PhotoModel>> getAlbumPhotos(
  1. {@Path("albumId") required int albumId}
)
@GET("/albums/{albumId}/photos"), override

Returns list with all photo models of a given album.

Implementation

@GET("/albums/{albumId}/photos")
@override
Future<List<PhotoModel>> getAlbumPhotos({
  @Path("albumId") required int albumId,
});