ValidationResult class

Constructors

ValidationResult.auto(bool isValid, List<String> errors)
factory
ValidationResult.failure(List<String> errors)
factory
ValidationResult.single(String? message)
factory
ValidationResult.success()
factory

Properties

errors List<String>
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
final
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
prettyPrint({String prefix = '', bool useColors = true}) → void
toMessageString([String separator = '\n']) String?
toString() String
A string representation of this object.
override

Operators

operator &(ValidationResult other) ValidationResult
operator ==(Object other) bool
The equality operator.
inherited
operator |(ValidationResult other) ValidationResult
operator ~() ValidationResult