getList<T> method

List getList<T>(
  1. String key
)

Function to get a list from the room

Implementation

List getList<T>(String key) {
  var cdata = getKey(key);
  if (cdata == null) {
    return [];
  }
  return List<T>.from(cdata.values.toList());
}