isNumericOnly static method

bool isNumericOnly(
  1. String s
)

Checks if string consist only numeric. Numeric only doesn't accepting "." which double data type have

Implementation

static bool isNumericOnly(String s) => hasMatch(s, r'^\d+$');