Year class

Constructors

Year(Date<DateAdapter<AbstractDate>> referenceDate)

Properties

days Iterable<Date<DateAdapter<AbstractDate>>>
Days in this Year
no setter
firstDay Date<DateAdapter<AbstractDate>>
The first day of this year
no setter
firstMonth Month
The first month of this year
no setter
firstWeek Week
The first week of this year
no setter
hashCode int
The hash code for this object.
no setterinherited
lastDay Date<DateAdapter<AbstractDate>>
The last day of this year
no setter
lastMonth Month
The last month of this year
no setter
lastWeek Week
The last week of this year
no setter
lastYear Year
The year before this year
no setter
leapYear bool
Returns true if this year is a leap year. because not all DateAdapters have the EfficientLeapYear mixin this method has a high chance of throwing an exception.
no setter
length int
Number of days in this year
no setter
months Iterable<Month>
Months in this Year
no setter
nextYear Year
The year after this year
no setter
numberOfWeeks int
no setter
referenceDate Date<DateAdapter<AbstractDate>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weeks Iterable<Week>
Weeks in this month
no setter

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