validate method

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

Implementation

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