isNum property

bool get isNum

Determines whether a given string represents an integer or a double.

Implementation

bool get isNum {
  return num.tryParse(this) is num;
}