tryGetList<T> method
Tries to convert the value at key (or alternativeKeys) to a List of T.
Implementation
List<T>? tryGetList<T>(
K key, {
List<K>? alternativeKeys,
dynamic innerKey,
int? innerListIndex,
List<T>? defaultValue,
ElementConverter<T>? elementConverter,
}) => ConvertObjectImpl.tryToList<T>(
_firstValueForKeys(key, alternativeKeys: alternativeKeys),
mapKey: innerKey,
listIndex: innerListIndex,
defaultValue: defaultValue,
elementConverter: elementConverter,
debugInfo: {
'key': key,
if (alternativeKeys != null && alternativeKeys.isNotEmpty)
'altKeys': alternativeKeys,
},
);