ZDateImpl class
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNullable → bool
-
no setterinherited
- isOptional → bool
-
no setterinherited
-
issues
→ List<
ZardIssue> -
finalinherited
- message → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$default(
DateTime defaultValue) → Schema -
A schema to define a default value for a field.
inherited
-
addError(
ZardIssue error) → void -
inherited
-
addTransform(
Transformer< DateTime> transform) → void -
inherited
-
addValidator(
Validator< DateTime> validator) → void -
inherited
-
clearErrors(
) → void -
inherited
-
datetime(
) → ZDate -
Adds a validator that checks for a valid datetime format.
inherited
-
getErrors(
) → List< ZardIssue> -
inherited
-
getTransforms(
) → List< Transformer< DateTime> > -
inherited
-
getValidators(
) → List< Validator< DateTime> > -
inherited
-
list(
{String? message}) → ZList -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
nullable(
) → Schema< DateTime> -
inherited
-
nullish(
) → Schema< DateTime> -
inherited
-
optional(
) → Schema< DateTime> -
inherited
-
parse(
dynamic value, {String? path}) → DateTime -
inherited
-
parseAsync(
dynamic value, {String path = ''}) → Future< DateTime> -
inherited
-
refine(
bool predicate(DateTime value), {String? message, String? path}) → Schema< DateTime> -
inherited
-
safeParse(
dynamic value, {String path = ''}) → ZardResult< DateTime> -
inherited
-
safeParseAsync(
dynamic value, {String path = ''}) → Future< ZardResult< DateTime> > -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
transform<
R> (R transformer(DateTime value)) → TransformedSchema< DateTime, R> -
inherited
-
transformTyped<
R> (R transformer(DateTime value)) → TransformedSchema< DateTime, R> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited