DateTimeInput<E> class
abstract
- Inheritance
- Implementers
Constructors
-
DateTimeInput.fromData(InputData<
DateTime?, E> data) - DateTimeInput.touched({DateTime? value, DateTime? initialValue, ValidationMode mode = ValidationMode.live, E? errorCache, E? remoteError})
-
const
- DateTimeInput.untouched({DateTime? value, ValidationMode mode = ValidationMode.live, E? errorCache})
-
const
Properties
-
asyncValidators
→ List<
AsyncValidator< DateTime?, E> > -
Asynchronous validators run via InputMixin.runBuiltInAsyncValidation.
no setterinherited
- currentRemoteError → E?
-
no setterinherited
-
detailedErrors
→ List<
E> -
ALL validation errors for the current value — bypasses the cache.
Use for password-strength meters or multi-requirement checklists.
no setterinherited
- error → E?
-
Remote errors take precedence over local ones.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialValue → DateTime?
-
finalinherited
- isDirty → bool
-
True when the current value differs from initialValue.
no setterinherited
- isNotValid → bool
-
no setterinherited
- isPristine → bool
-
True when the current value equals the initialValue (user has not
changed the field from its starting state).
no setterinherited
- isTouched → bool
-
no setterinherited
- isUntouched → bool
-
no setterinherited
- isValid → bool
-
no setterinherited
- isValidating → bool
-
no setterinherited
- localError → E?
-
no setterinherited
- mode → ValidationMode
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sanitizers
→ List<
Sanitizer< DateTime?> > -
no setterinherited
- status → InputStatus
-
finalinherited
-
validators
→ List<
Validator< DateTime?, E> > -
Synchronous validators run against value.
no setterinherited
- value → DateTime?
-
finalinherited
Methods
-
daysDifference(
DateTime other) → int? -
Returns the number of whole days between value and
other. Returns null when value is null. -
displayError(
SubmissionStatus status) → E? -
Resolves the error to show in the UI based on SubmissionStatus and ValidationMode.
inherited
-
isAfter(
DateTime other) → bool -
Returns true if value is after
other. Returns false when value is null. -
isBefore(
DateTime other) → bool -
Returns true if value is before
other. Returns false when value is null. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareUpdate(
{DateTime? value, InputStatus? status, ValidationMode? mode, E? remoteError}) → InputData< DateTime?, E> -
⚠️ Known limitation: when
Tis nullable (e.g.,DateTime?), passingvalue: nullis indistinguishable from omittingvalue. Use InputMixin.reset to revert a nullable field to its initial value.inherited -
sanitize(
DateTime? value) → DateTime? -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{DateTime? value, InputStatus? status, ValidationMode? mode, E? remoteError}) → DateTimeInput< E> -
override
-
validate(
DateTime? value) → E? -
inherited
-
validateAsync(
DateTime? value) → Future< E?> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited