toBoolean function Null safety

bool? toBoolean(
  1. String? stringValue
)

Implementation

bool? toBoolean(String? stringValue) {
  switch (stringValue) {
    case 't':
      return true;
    case 'f':
      return false;
    default:
      return null;
  }
}