Canonical, timezone-free values exchanged by mini-program date/time fields.
Dates use Gregorian YYYY-MM-DD, times use 24-hour HH:mm, and ranges
contain exactly start and end dates. These values do not represent an
instant or imply a timezone. No parsing method normalizes invalid input.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Static Methods
-
parseDate(
Object? value) → DateTime -
Parses a civil date as UTC solely for component validation/comparison.
Convert its components to a local calendar date when displaying a picker;
do not convert this validation value with
toLocal(). -
parseDateRange(
Object? value) → Map< String, String> - Validates and defensively copies an ordered, inclusive date range.
-
parseTime(
Object? value) → int - Parses a clock time into minutes since midnight, without a date/timezone.
Constants
- defaultMaxDate → const String
- defaultMinDate → const String