tryParseBoolean function

bool? tryParseBoolean(
  1. dynamic target
)

Implementation

bool? tryParseBoolean(dynamic target) {
  if (target == null) {
    return null;
  }
  if (target is bool) {
    return target;
  }
  return target.toBool();
}