onWeekChange property
Callback invoked when the displayed week changes.
Receives a list of 7 DateTime objects representing the current week.
Example:
onWeekChange: (List<DateTime> list) {
print("Week starts: ${list.first}");
print("Week ends: ${list.last}");
}
Implementation
final Function(List<DateTime>)? onWeekChange;