isPositiveInt static method

bool isPositiveInt(
  1. int? value
)

Validates that an integer is positive

Implementation

static bool isPositiveInt(int? value) {
  return value != null && value > 0;
}