isInt static method

bool isInt(
  1. String text
)

Tests whether text is a valid integer.

Implementation

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