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

day int
final
hashCode int
The hash code for this object.
no setterinherited
month int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
final

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