boolValues property
Extra spellings that read as true or false, keyed by the exact text.
Only lowercase true and false are booleans by default. Excel writes
them as TRUE and FALSE, databases often export t/f or 1/0,
and survey exports use Yes/No, all of which otherwise arrive as
strings:
const CsvConfig(boolValues: {
'TRUE': true, 'FALSE': false,
'Yes': true, 'No': false,
});
Matching is exact, so list each spelling you accept. Only a value that
read as text is eligible, which is the same rule nullValues follows: a
numeric entry such as '1' has no effect, because 1 has already read
as the number 1. nullValues is checked first, so a value in both reads
as null.
Defaults to empty, which leaves boolean handling as it was.
Implementation
final Map<String, bool> boolValues;