EventRenderer class

Helper class to calculate the placement of events within a calendar week.

Constructors

EventRenderer.new(List<InternalCalendarEvent> events, DateTime weekStart, {required int maxEvents})
Creates a new instance of EventRenderer.

Properties

days int
The number of days in the week.
final
events List<InternalCalendarEvent>
The events to render.
final
hashCode int
The hash code for this object.
no setterinherited
maxEvents int
The maximum number of events to display.
final
rows List<List<EventPlacement?>>
The rows of event placements.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weekStart DateTime
The start of the week.
final

Methods

calculate() → void
Calculates the displayable event placements and overflow counts for the week.
getOverflowCount(int dayIdx) int
Returns the number of overflowed events for the given day index.
getOverflowText(int dayIdx) String
Returns the text to display for overflowed events (e.g., "+3 more").
hasOverflow(int dayIdx) bool
Returns true if there are overflowed events for the given day index.
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