validate method

  1. @override
SchemaValidationError? validate(
  1. List<T> value
)
override

Implementation

@override
SchemaValidationError? validate(List<T> value) {
  final unique = value.toSet().toList();
  return unique.length == value.length
      ? null
      : const SchemaValidationError.constraints('List items are not unique');
}