getList<TGenericType> method

List<TGenericType>? getList<TGenericType>(
  1. String key
)

Implementation

List<TGenericType>? getList<TGenericType>(String key) {
  final value = get(key);
  if (value is List) {
    return value.cast<TGenericType>().toList();
  }
  return null;
}