isDouble property

bool isDouble

Determine whether the current instance is a double.

Can be called in the following ways, 2.0.isDouble 2.0.runtimeType.isDouble

Implementation

bool get isDouble {
  if (this is Type) {
    return this == double;
  } else {
    return this is double;
  }
}