SimformSolutionsPvtLtd / flutter_calendar_view

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. 👌🔝🎉
https://pub.dev/packages/calendar_view
MIT License
435 stars 259 forks source link

Remove all event from Calendar #313

Closed VivekVithlani closed 5 months ago

VivekVithlani commented 9 months ago

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.

ahmetakil commented 8 months ago

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

This worked well for me

mac066 commented 7 months ago

Is there any update??

ParthBaraiya commented 5 months ago

Closing this for now as a solution already exists.