Highlight class

A highlighted range in a calendar period. There should be one of these per block of color. E.g. if a week contains only one range, there'll be one highlight; if it has two ranges, it'll have two highlights if the ranges don't overlap, or three if they do.

This class is used both for date highlights within weeks, and for month highlights within years.

The start and end indices don't exactly correspond to the day of the week / the month of the year ("N" means the number of points in the time period such as days in a week or months in a year):

  • 0 means "coming in from last period (week/year)"
  • 1..N mean point I in the period (day I in the week or month I in the year)
  • (N+1) means "going into next period (week/year)"

Constructors

Highlight(int start, int end, List<CalendarSelection> containedRanges, {int classIndexOffset = 0, int group = 0})

Properties

classes List<String>?
no setter
classIndexOffset int
Offset applied to start and end when assigning CSS classes. This is used for cases where highlights are wrapped around a line break (such as grouping months within a year into 2 rows of 6 months).
final
containedRanges List<CalendarSelection>
final
end int
final
group int
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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