SuperValidationInt.minMax constructor
SuperValidationInt.minMax({})
Implementation
factory SuperValidationInt.minMax(
{int min = 0,
int max = 9007199254740991,
String? Function(String?)? validateFunc,
String? minMessage,
String? maxMessage,
SuperValidationStore<String>? store}) {
return SuperValidationInt(
validateFunc: (value) {
final firstValidation = getMinMaxMessage(
min: min,
max: max,
value: parseValue(value),
minMessage: minMessage,
maxMessage: maxMessage);
return firstValidation ?? validateFunc?.call(value);
},
store: store);
}