static String? genericNumberValidator(String? value, String type) { if (value == null || value.isEmpty || int.parse(value) <= 0) { return "$type cannot be empty or 0"; } return null; }