tryGetList<T> method

List<T>? tryGetList<T>(
  1. String key
)

Implementation

List<T>? tryGetList<T>(String key) {
  if (!containsKey(key)){
    return null;
  }
  return (this[key] as List).cast<T>();
}