getAlbum method

GalleryAlbum? getAlbum(
  1. String name
)

Implementation

GalleryAlbum? getAlbum(String name) {
  try {
    return albums.singleWhere((element) => element.name == name);
  } catch (e) {
    if (kDebugMode) {
      print(e);
    }
    return null;
  }
}