validate method

  1. @override
SchemaValidationError? validate(
  1. num value
)
override

Implementation

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