isNum method

bool isNum()

Checks if the string is a valid number.

Implementation

bool isNum() => num.tryParse(this) != null;