isValid method
checks the input against the given conditions
Implementation
@override
bool isValid(String? value) {
try {
final numericValue = num.parse(value!);
return (numericValue >= min && numericValue <= max);
} catch (_) {
return false;
}
}