getListValOr<T> method

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

Implementation

List<T>? getListValOr<T>(String key) {
  if (this[key] is List) return this[key].cast<T>();
  return null;
}