EventLayoutStrategy typedef
EventLayoutStrategy =
EventLayoutDelegate Function(Iterable<CalendarEvent> events, InternalDateTime date, TimeOfDayRange timeOfDayRange, double heightPerMinute, double? minimumTileHeight, EventLayoutDelegateCache? cache, Location? location)
Signature for the strategy that determines how DayEvents are laid out.
There are two built-in strategies:
-
overlapLayoutStrategy, which displays the tile over each other.
-
sideBySideLayoutStrategy, which displays the tiles next to each other.
Implementation
typedef EventLayoutStrategy = EventLayoutDelegate Function(
Iterable<CalendarEvent> events,
InternalDateTime date,
TimeOfDayRange timeOfDayRange,
double heightPerMinute,
double? minimumTileHeight,
EventLayoutDelegateCache? cache,
Location? location,
);