isBool static method
Implementation
static bool isBool(v,
{List<String> trues = const ['true', 'True'],
List<String> falses = const ['false', 'False']}) {
if (v == null) return true;
if (v is bool) return true;
if (v is num) return true;
if (v is String) {
if (trues.contains(v)) return true;
if (falses.contains(v)) return true;
return false;
}
return false;
}