Default class abstract final

The validation group of every constraint declared without groups.

Groups let one class carry rules for different situations. A group is just a type, usually an empty abstract final class OnUpdate {}, named in a constraint's groups and in the groups a validation asks for. Validating without groups checks only this group; to check other groups as well as the ordinary rules, list Default next to them.

// An update checks the ordinary rules and the update ones.
abstract final class OnUpdate {}

validator.validateObject(form, groups: [Default, OnUpdate]);

Spring (Java):

validator.validate(form, Default.class, OnUpdate.class);

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited