isNumeric method

bool isNumeric()

Check if the string represents a number.

Implementation

bool isNumeric() {
  return double.tryParse(this) != null;
}