Date class
A date in the Gregorian calendar. It doesn't have a timezone.
final date = Date(2020, 12, 31);
- Implemented types
Constructors
Properties
Methods
-
compareTo(
Date other) → int -
Compares this object to another object. [...]
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toDateTime(
{bool isUtc = false}) → DateTime -
Returns
DateTime(year, month, day)
. -
toString(
) → String -
A string representation of this object. [...]
override
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
override