Function to get a list from the room
List getList<T>(String key) { var cdata = getKey(key); if (cdata == null) { return []; } return List<T>.from(cdata.values.toList()); }