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