flutter_calendar_view icon indicating copy to clipboard operation
flutter_calendar_view copied to clipboard

Remove all event from Calendar

Open VivekVithlani opened this issue 1 year ago • 1 comments

Hello,

I want to remove all events (remove all events from the calendar), but I did not find any function or method to remove all events from the whole calendar.

I found only removeEvnet method.

Right now, I am using below approach to remove all events

for (var event in eventController.events) { eventController.remove(event); }

Kindly provide a better solution if one exists.

Thank you, Vivek Vithalani.

VivekVithlani avatar Jan 30 '24 09:01 VivekVithlani

eventController.removeWhere((_) => true);

This worked well for me

ahmetakil avatar Mar 01 '24 09:03 ahmetakil

Is there any update??

mac066 avatar Apr 01 '24 06:04 mac066

Closing this for now as a solution already exists.

ParthBaraiya avatar Jun 05 '24 18:06 ParthBaraiya