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:

Implementation

typedef EventLayoutStrategy = EventLayoutDelegate Function(
  Iterable<CalendarEvent> events,
  InternalDateTime date,
  TimeOfDayRange timeOfDayRange,
  double heightPerMinute,
  double? minimumTileHeight,
  EventLayoutDelegateCache? cache,
  Location? location,
);