CalendarMonth class

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

Constructors

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

Properties

calendarState CalendarState?
getter/setter pair
classes List<String>
no setter
displayTitleInline bool
no setter
hashCode int
The hash code for this object.
no setteroverride
month int
no setter
next CalendarMonth?
Get the next month within this month's year, unless it's at the end of the year, in which case return null.
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
weeks List<CalendarWeek>?
no setter
year int
no setter

Methods

addMonths(int months) CalendarMonth
Adds the given number of months to this month. For instance:
containsDate(Date date) bool
deltaMonths(CalendarMonth other) int
The difference in months between the other month and this month. If other is later than this month, this will be a positive number. For all N, month.deltaMonths(month.addMonths(N)) == N.
getRowIndex(int day) int
Index of the row in the month that contains the day. If no days match, -1 is returned.
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