SmartFormResult class final

An immutable snapshot produced by validating a smart form.

Constructors

SmartFormResult({required bool isValid, required Map<String, Object?> values, required Map<String, String> errors})
Creates an immutable validation result from the supplied snapshots.

Properties

errors Map<String, String>
Validation errors keyed by field name.
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether every enabled field passed validation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, Object?>
Values captured when validation completed.
final

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