isInt property
bool
isInt
Determine whether the current instance is an int.
Can be called in the following ways,
2.isInt
2.runtimeType.isInt
Implementation
bool get isInt {
if (this is Type) {
return this == int;
} else {
return this is int;
}
}