isNumeric method

bool isNumeric()

True when it parses as a number. "3.5" → true

Implementation

bool isNumeric() => double.tryParse(this) != null;