parseBool function

bool? parseBool(
  1. String? v
)

Implementation

bool? parseBool(String? v) {
  if (v == null) {
    return null;
  }
  return ['yes', 'true'].contains(v);
}