MonthRange class

Lightweight class representing one or more consecutive months.

Constructors

MonthRange(Date start, int length)
Create a MonthRange with the given start and length.
MonthRange.within(CalendarMonth? min, CalendarMonth? max, int length, {CalendarMonth? tryToStartAt})
Create a MonthRange with desired length and (ideally) start, constrained by min and max.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
The number of months in the range. Should be at least 1.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Date
The month at the beginning of the range. The 'day' field is generally ignored, but should be 1, by convention.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toList(CalendarState state, int startingWeekday) List<CalendarMonth>
Eagerly construct a list of CalendarMonth instances corresponding to this MonthRange.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited