validateNumber static method

String? validateNumber(
  1. double? value,
  2. String fieldName
)

Implementation

static String? validateNumber(double? value, String fieldName) {
  if (value == null || value <= 0) {
    return makeValidateInvalidFieldMessage(fieldName);
  }

  return null;
}