INNER CODE UNIT · Dart
toBooleanObject
Ephenodrom/Dart-Basic-Utils · lib/src/BooleanUtils.dart:113
static bool toBooleanObject(final String? str) {
if (str == TRUE) {
return true;
}
if (str == FALSE) {
return false;
}
if (str == null) {
return false;
}
switch (str.length) {
case 1:
{
final ch0 = str[0];
if (ch0 == 'y' ||
ch0 == 'Y' ||
ch0 == 't' ||
ch0 == 'T' ||