tryGetList<T> method
Tries to convert the element at index (or fallback indices) to a List of T.
Implementation
List<T>? tryGetList<T>(
int index, {
List<int>? alternativeIndices,
dynamic innerMapKey,
int? innerIndex,
List<T>? defaultValue,
ElementConverter<T>? elementConverter,
}) => ConvertObjectImpl.tryToList<T>(
_firstForIndices(index, alternativeIndices: alternativeIndices),
mapKey: innerMapKey,
listIndex: innerIndex,
defaultValue: defaultValue,
elementConverter: elementConverter,
debugInfo: {
'index': index,
if (alternativeIndices != null && alternativeIndices.isNotEmpty)
'altIndexes': alternativeIndices,
},
);