validateNumberInt static method

String? validateNumberInt(
  1. int? value,
  2. String fieldName
)

Implementation

static String? validateNumberInt(int? value, String fieldName) {
  if (value == null || value <= 0) {
    return makeValidateFieldMessage(fieldName);
  }

  return null;
}