isNumeric method

bool isNumeric()

Implementation

bool isNumeric() {
  if (isNotEmpty) {
    final value = double.tryParse(this);
    return value != null;
  }
  return false;
}