EventSnapStrategy typedef

EventSnapStrategy = DateTime Function(DateTime cursorDate, DateTime startOfDay, int snapIntervalMinutes)

The EventSnapStrategy typedef defines a function that snaps events to specific intervals.

This function takes a cursorDate and a startOfDay date, and returns a new date that is snapped based on the defined strategy.

Implementation

typedef EventSnapStrategy = DateTime Function(DateTime cursorDate, DateTime startOfDay, int snapIntervalMinutes);