isNumericOnly static method

bool isNumericOnly(
  1. String text
)

Checks if text contains only numbers

Implementation

static bool isNumericOnly(String text) {
  return !_numbersOnlyPattern.hasMatch(text);
}