CalendarLayoutConfig class

Configuration for the layout of the calendar

Note: this is for internal use only

Constructors

CalendarLayoutConfig.calculate({required CalendarConfig config, required DateTimeRange<DateTime> range, required Map<DateTime, int?> values})
Calculate the layout configuration for the calendar from other configurations.
factory

Properties

blankCells int
Number of blank cells at the start of the calendar (before the first day).
final
dateBase DateTime
First date in the calendar.
final
dateCells int
Number of date cells in the calendar.
final
hashCode int
The hash code for this object.
no setterinherited
maxValue int?
Maximum value in the calendar (if any).
final
minValue int?
Minimum value in the calendar (if any).
final
paintOffset double
Offset of the paint when drawing next cell.
final
rawConfig CalendarConfig
The CalendarConfig passed to the BadContributionCalendar widget.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Size of the canvas.
final
values Map<DateTime, int?>
Values of the calendar.
final
weeks int
Number of weeks (columns) in the calendar.
final

Methods

getDateAt(Offset position) → (DateTime, int?)?
Get the date (and it's value) at the given position, return null if the position is not on a cell.
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