AckRule class abstract final

Base type of the Ack rule annotations, such as HasMinLength and IsEmail.

ack_generator reads rules by their type. Write the concrete rule annotations; do not use this type directly.

@Schemable()
final class User({
  @IsEmail() required final String email,
  @HasMinLength(2) required final String name,
}) with _$UserAck {
  static final schema = UserSchema.schema;
}

Validate.kind and Validate.value stay visible on every rule until Validate is deleted. Redirecting factories require this subtype, so those fields cannot be dropped earlier.

Inheritance
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → String
The constraint identifier.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
value → Object?
The constraint argument (num, int, or String), if any.
finalinherited

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