CalendarDate class

Implemented types
Annotations

Constructors

CalendarDate(int year, int month, int day)
const
CalendarDate.fromDateTime(DateTime date)
CalendarDate.today()
factory

Properties

day int
final
daysInMonth int
The number of days in the month represented by this calendar date.
no setter
hashCode int
The hash code for this object.
no setteroverride
isLeapYear bool
Whether the year represented by this calendar date is a leap year.
no setter
isValid bool
no setter
month int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weekday int
The day of the week, Monday (1) to Sunday (7).
no setter
year int
final

Methods

compareTo(CalendarDate other) int
Compares this object to another object.
override
isAfter(CalendarDate other) bool
isBefore(CalendarDate other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime() DateTime
toString() String
A string representation of this object.
override

Operators

operator +(int days) CalendarDate
operator -(int days) CalendarDate
operator <(CalendarDate other) bool
operator <=(CalendarDate other) bool
operator ==(Object other) bool
The equality operator.
override
operator >(CalendarDate other) bool
operator >=(CalendarDate other) bool