annotations.collection library

To use, import package:validations/annotations/collection.dart

Classes

Unique
Checks that the annotated collection only contains unique elements. The default message does not include the list of duplicate elements but you can include it by overriding the message and using the {duplicates} message parameter. The list of duplicate elements is also included in the dynamic payload of the constraint violation.
Valid
Checks that the annotated Type is valid. [...]

Constants

unique → const Unique
Unique annotation using default values
const Unique()
valid → const Valid
Valid annotation using default values
const Valid()

Properties

collectionAnnotations → List<Object>
final