validate method
Implementation
@override
SchemaValidationError? validate(num value) {
return value >= min && value <= max
? null
: SchemaValidationError.constraints(
'Value is not within the required range: $min - $max',
);
}