getBox property
Box
getBox
Used to get all the box/room information from a specific RoomType.
Implementation
Box<dynamic> get getBox {
switch (this) {
case RoomType.FAVORITES:
return Hive.box<FavoritesEntity>("on_favorites_room");
case RoomType.LAST_PLAYED:
return Hive.box<LastPlayedEntity>("on_last_played_room");
case RoomType.MOST_PLAYED:
return Hive.box<MostPlayedEntity>("on_most_played_room");
case RoomType.PLAYLIST:
return Hive.box<PlaylistEntity>("on_playlists_room");
default:
throw "[getRoomInfo] - [roomType] doesn't return a real Room\n"
"Choose one of the existing Room's";
}
}