toBool method
Converts a case-insensitive string of 'true' to a boolean. Returns false if the string is not 'true'. Audited: 2026-06-12 11:26 EDT
Implementation
@useResult
bool toBool() => toLowerCase() == 'true';
Converts a case-insensitive string of 'true' to a boolean. Returns false if the string is not 'true'. Audited: 2026-06-12 11:26 EDT
@useResult
bool toBool() => toLowerCase() == 'true';