CalendarYear class

A calendar year; the basic unit of the scrolling month grid. It has a localized title ("2015") and a collection of months.

The months in the year are logically grouped into 2 rows of 6 months. Highlights within the year are split at the 6 month boundary, and the CSS classes applied to the months in the second row (after the boundary) are shifted to align with those of the first row.

Constructors

CalendarYear(int year, CalendarState? state, {int startingWeekday = DateTime.monday})
CalendarYear.fromDate(Date date, {CalendarState? state, int startingWeekday = DateTime.monday})
CalendarYear.fromTime(DateTime time, {CalendarState? state, int startingWeekday = DateTime.monday})

Properties

hashCode int
The hash code for this object.
no setteroverride
highlights List<Highlight>?
no setter
months List<CalendarMonth>?
no setter
next CalendarYear
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Date
no setter
startingWeekday int
final
title String?
no setter
year int
no setter

Methods

addYears(int years) CalendarYear
Adds the given number of years to this year. For instance:
deltaYears(CalendarYear other) int
The difference in years between the other year and this year. If other is later than this year, this will be a positive number. For all N, year.deltaYears(year.addYears(N)) == N.
getRowIndex(int month, {int monthsPerRow = 4}) int
highlightsInGroup(int group) Iterable<Highlight>
inherited
monthsInRow(int row) Iterable<CalendarMonth>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
update(CalendarState state) → void

Operators

operator ==(Object o) bool
The equality operator.
override