init method
Implementation
init(AtClientImpl? _atClientInstance, bool isUpdate,
EventNotificationModel? eventData) {
if (eventData != null) {
EventService().eventNotificationModel = EventNotificationModel.fromJson(
jsonDecode(EventNotificationModel.convertEventNotificationToJson(
eventData)));
createContactListFromGroupMembers();
update();
} else {
eventNotificationModel = EventNotificationModel();
eventNotificationModel!.venue = Venue();
eventNotificationModel!.event = Event();
eventNotificationModel!.group = AtGroup('');
selectedContacts = [];
}
isEventUpdate = isUpdate;
print('isEventUpdate:$isEventUpdate');
atClientInstance = _atClientInstance;
Future.delayed(Duration(milliseconds: 50), () {
eventSink.add(eventNotificationModel);
});
}