isNumeric method

bool isNumeric()

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

Implementation

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