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})

Properties

days int
final
events List<InternalCalendarEvent>
final
hashCode int
The hash code for this object.
no setterinherited
maxEvents int
final
rows List<List<EventPlacement?>>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
weekStart DateTime
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