ExpectationCodes class

Centralized expectation code constants to avoid typos.

Codes follow a domain.specific_issue naming. Existing domains:

  • value.* : primitive / direct value expectations
  • structure.* : map/list structural errors
  • logic.* : logical/combinator wrappers

NOTE: Only add stable, publicly documented codes here. Experimental ones can live near their validators until stabilized.

Constructors

ExpectationCodes.new()

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

Static Properties

logicPredicateFailed ↔ String
getter/setter pair
typeMismatch ↔ String
getter/setter pair
valueRangeOutOfBounds ↔ String
getter/setter pair

Constants

logicNotExpected → const String
structureListItemFailed → const String
structureMapFieldFailed → const String
structureUnknownKey → const String
valueCaseMismatch → const String
valueContainsMissing → const String
valueDateMismatch → const String
valueDateNotFuture → const String
valueDateNotPast → const String
valueDateOutOfRange → const String
valueDeepEqualMismatch → const String
valueEmailNormalized → const String
valueEqualMismatch → const String
valueFormatInvalid → const String
valueLengthOutOfRange → const String
valueMembershipMismatch → const String
valuePatternMismatch → const String
valueSlugInvalid → const String
valueUnicodeNormalized → const String