toBool function

bool? toBool(
  1. dynamic str
)

Implementation

bool? toBool(str) {
  return str is String ? str == "true" : null;
}