isNat static method

bool isNat(
  1. String text
)

Tests whether text is a valid integer.

Implementation

static bool isNat(String text) {
  var rc = false;
  if (text.isNotEmpty) {
    rc = regExprNat.firstMatch(text) != null;
  }
  return rc;
}