getBool method

bool getBool(
  1. int index, {
  2. dynamic innerMapKey,
  3. int? innerIndex,
  4. bool? defaultValue,
  5. ElementConverter<bool>? converter,
})

Converts the element at index to a bool.

Implementation

bool getBool(
  int index, {
  dynamic innerMapKey,
  int? innerIndex,
  bool? defaultValue,
  ElementConverter<bool>? converter,
}) => ConvertObjectImpl.toBool(
  _valueAt(index),
  mapKey: innerMapKey,
  listIndex: innerIndex,
  defaultValue: defaultValue,
  converter: converter,
  debugInfo: {'index': index},
);