isBool property
bool
get
isBool
Determine whether the current instance is a bool.
Can be called in the following ways,
true.isDouble
false.runtimeType.isDouble
Implementation
bool get isBool {
if (this is Type) {
return this == bool;
} else {
return this is bool;
}
}