Constructors
-
MapInput.fromData(InputData<Map<K, V>, E> data)
-
-
MapInput.touched({Map<K, V> value = const {}, Map<K, V>? initialValue, ValidationMode mode = ValidationMode.live, E? errorCache, E? remoteError})
-
const
-
MapInput.untouched({Map<K, V> value = const {}, ValidationMode mode = ValidationMode.live, E? errorCache})
-
const
Properties
-
currentRemoteError
→ E?
-
no setterinherited
-
detailedErrors
→ List<E>
-
Returns a list of ALL validation errors for the current value.
no setterinherited
-
error
→ E?
-
Returns the effective error. Remote errors take precedence over local ones.
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
initialValue
→ Map<K, V>
-
The value this input had when it was first created FormInput.untouched.
finalinherited
-
isNotValid
→ bool
-
Returns true if there are any errors (local or remote).
no setterinherited
-
isPristine
→ bool
-
Returns true if the value equals initialValue.
no setterinherited
-
isTouched
→ bool
-
Returns true if the field has been touched.
no setterinherited
-
isUntouched
→ bool
-
Returns true if the field has not been touched.
no setterinherited
-
isValid
→ bool
-
Returns true if there are no local OR remote errors.
no setterinherited
-
isValidating
→ bool
-
Returns true if async validation is currently running
no setterinherited
-
localError
→ E?
-
Returns the local validation error (cached if available).
no setterinherited
-
mode
→ ValidationMode
-
Controls when errors are displayed (Live, Deferred, Blur).
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
sanitizers
→ List<Sanitizer<Map<K, V>>>
-
Sanitizers to transform the value before validation.
no setterinherited
-
status
→ InputStatus
-
The interaction state (touched/untouched).
finalinherited
-
validators
→ List<Validator<Map<K, V>, E>>
-
Validators to run against the value.
no setterinherited
-
value
→ Map<K, V>
-
The current value of the input.
finalinherited
Methods
-
displayError(FormStatus status)
→ E?
-
Resolves the error to display in the UI based on FormStatus and ValidationMode.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareUpdate({Map<K, V>? value, InputStatus? status, ValidationMode? mode, E? remoteError})
→ InputData<Map<K, V>, E>
-
Centralizes the logic for updating a field.
inherited
-
sanitize(Map<K, V> value)
→ Map<K, V>
-
Define sanitization logic here (optional).
Call this inside your copyWith or factories.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
update({Map<K, V>? value, InputStatus? status, ValidationMode? mode, E? remoteError})
→ FormInput<Map<K, V>, E>
-
inherited
-
validate(Map<K, V> value)
→ E?
-
Define your validation logic here.
This is called automatically by the constructor.
inherited
-
validateAsync(Map<K, V> value)
→ Future<E?>
-
Override to enable async validation (e.g., username availability)
inherited