findPhotos function

List<Photo> findPhotos(
  1. int id
)

Implementation

List<Photo> findPhotos(int id) {
  return photos
      .where((photo) => photo['albumId'] == id)
      .map(convertToPhoto)
      .toList();
}