validate method
Implementation
@override
SchemaValidationError? validate(num value) {
return value <= max
? null
: SchemaValidationError.constraints(
'Value is greater than the maximum required value: $max',
);
}
@override
SchemaValidationError? validate(num value) {
return value <= max
? null
: SchemaValidationError.constraints(
'Value is greater than the maximum required value: $max',
);
}