getList static method
Returns the value at key when it is a List, otherwise defaultValue.
Implementation
static List? getList(Map map, String key, [List? defaultValue]) {
final dynamic v = get(map, key);
return v is List ? v : defaultValue;
}