parseBool static method

bool parseBool(
  1. dynamic source
)

Implementation

static bool parseBool(source) {
  if (source == null) {
    return false;
  }
  if (source is bool) {
    return source;
  }
  return source == "true";
}