isNumber function

bool isNumber(
  1. String value
)

Implementation

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