EventRenderer class
A class that renders events on the calendar.
Constructors
-
EventRenderer.new(List<
InternalCalendarEvent> events, DateTime day, {required int maxEvents}) - Creates a new instance of EventRenderer.
Properties
- day → DateTime
-
The day to render.
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
-
placements
↔ List<
EventPlacement> -
The placements of the events.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculate(
) → void - Calculates the placements of the events.
-
getOverflowText(
) → String - Returns the text to display when there are more events than can be displayed.
-
hasOverflow(
) → bool - Whether there are more events than can be displayed.
-
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