columnToBool method

void columnToBool(
  1. dynamic index, {
  2. List<String> trues = const ['true', 'True'],
  3. List<String> falses = const ['false', 'False'],
  4. bool? defaultValue,
})

Implementation

void columnToBool(/* String | int */ index,
    {List<String> trues = const ['true', 'True'],
    List<String> falses = const ['false', 'False'],
    bool? defaultValue}) {
  index = _toIndex(index);

  for (int r = 0; r < rows.length; r++) {
    rows[r][index] = ColumnConverter.toBool(rows[r][index],
        trues: trues, falses: falses, defaultValue: defaultValue);
  }
}