isWholePositiveNumber static method

bool isWholePositiveNumber(
  1. String value
)

Check to see whether the input string is a whole, positive number.

@param value the input string to test @return {@code true} if the input value consists entirely of integers

Implementation

static bool isWholePositiveNumber(String value) {
  return value != null && isDigitsOnly(value);
}