addListener method

void addListener(
  1. CalendarDataSourceCallback listener
)

Calls the listener every time the collection in the CalendarDataSource changed

Listeners can be removed with removeListener

Implementation

void addListener(CalendarDataSourceCallback listener) {
  _listeners ??= <CalendarDataSourceCallback>[];
  _listeners!.add(listener);
}