FlodFormAdapter class

Bridges FlodFailure.getFieldsMap to form-style field validation.

Pure Dart — no Flutter dependency. Wire fieldValidator into TextFormField.validator or bind validate to your form state.

Constructors

FlodFormAdapter(Validator<Map<String, dynamic>> schema)
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
schema Validator<Map<String, dynamic>>
final

Methods

errorFor(String fieldPath, Map<String, dynamic> values) String?
Returns the first error message for fieldPath, or null if valid.
fieldValidator(String fieldPath, Map<String, dynamic> readValues()) String? Function(String?)
Builds a single-field validator for Flutter TextFormField.validator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(Map<String, dynamic> values) Map<String, String>
Validates values and returns the first error message per field path.
validateGrouped(Map<String, dynamic> values) Map<String, List<String>>
Validates values and returns all error messages grouped by field path.

Operators

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