isNum property

bool get isNum

Implementation

bool get isNum {
  if (trim().isEmpty) return false;
  return num.tryParse(this) is num;
}