refreshEvents method
Future<void> refreshEvents ()
This function is used to refresh the events in the organization.
The function uses getEvents
method from EventService
.
Implementation
Future<void> refreshEvents() async {
setState(ViewState.busy);
_events.clear();
_uniqueEventIds.clear();
await _eventService.getEvents();
setState(ViewState.idle);
}