isNumeric method

bool isNumeric()

Implementation

bool isNumeric() {
  RegExp _numeric = RegExp(r'^-?[0-9]+$');
  return _numeric.hasMatch(this);
}