isNumber method

bool isNumber(
  1. String value
)

Implementation

bool isNumber(String value) {
  return RegExp('^[0-9]*\$').hasMatch(value);
}