getEventList method
Implementation
Future<List<EventModel>> getEventList() async {
var noteMapList = await getEventList();
int count = noteMapList.length;
List<EventModel> eventList = [];
eventList.sort(
(a, b) => a.eventTime!.compareTo(int.parse(b.eventTime.toString())));
return eventList;
}