tryGetInt method
Tries to convert the element at index (or fallback indices) to int.
Implementation
int? tryGetInt(
int index, {
List<int>? alternativeIndices,
dynamic innerMapKey,
int? innerIndex,
String? format,
String? locale,
int? defaultValue,
ElementConverter<int>? converter,
}) => ConvertObjectImpl.tryToInt(
_firstForIndices(index, alternativeIndices: alternativeIndices),
mapKey: innerMapKey,
listIndex: innerIndex,
format: format,
locale: locale,
defaultValue: defaultValue,
converter: converter,
debugInfo: {
'index': index,
if (alternativeIndices != null && alternativeIndices.isNotEmpty)
'altIndexes': alternativeIndices,
},
);