onlyNumeric method

bool onlyNumeric(
  1. String str
)

Check string only numeric.

Implementation

bool onlyNumeric(String str) {
  RegExp reg = RegExp(_Regex().onlyNumeric);

  return reg.hasMatch(str);
}