getList<T> method
Get a property's value as a List Object, which is a mapping object of an array value. Returns null if the property doesn't exists, or its value is not an array.
- Parameter key: The key.
- Returns: The List Object object or null.
Implementation
List<T> getList<T>(String key) {
var _result = getValue(key);
if (_result is List) {
return List.unmodifiable(List.castFrom<dynamic, T>(_result));
}
return null;
}