isNumber property

bool isNumber

Implementation

bool get isNumber {
  return RegExp(r'^\d+$').hasMatch(this);
}