DateOnly class
DateOnly for present year / month / day only.
Constructors
- DateOnly({required int year, required int month, required int day})
- default constructor
- DateOnly.fromDateTime(DateTime dateTime)
-
factory fromDateTime
factory
- DateOnly.now()
-
factory now
factory
- DateOnly.today()
-
factory today
factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDateTime(
) → DateTime - toDateTime Convert to DateTime Warning: Time is set to 00:00:00
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited