EventLayoutStrategy class abstract Layout

Decides how tiles that overlap in time share a day column.

Set it on the body configuration:

MultiDayBodyConfiguration(
  eventLayoutStrategy: const EventLayoutStrategy.sideBySide(),
)

This is a class rather than a function so that it has value equality. Body configurations are compared with == to decide whether the calendar needs to rebuild, and a function field would defeat that.

Implementers

Constructors

EventLayoutStrategy()
const
EventLayoutStrategy.overlap()
Tiles are drawn over each other. The default.
const
factory
EventLayoutStrategy.sideBySide()
Tiles that overlap in time divide the width of the column between them.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createDelegate({required Iterable<KalenderEvent> events, required FloatingDateTime date, required KalenderTimeRange timeOfDayRange, required double heightPerMinute, required double? minimumTileHeight, required EventLayoutDelegateCache? cache, required Location? location}) EventLayoutDelegate
The delegate that lays out events in the column for date.
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