isNumeric property

bool get isNumeric

True if the entire string is a valid number (int or double) in Dart sense.

Implementation

bool get isNumeric => num.tryParse(trim()) != null;