init method

void init({
  1. dynamic streamAlternative(
    1. List<EventKeyLocationModel>
    )?,
})

initializes with necessary values and configurations

Implementation

void init({Function(List<EventKeyLocationModel>)? streamAlternative}) async {
  loggedInUserDetails = null;
  atClientManager = AtClientManager.getInstance();
  currentAtSign = atClientManager.atClient.getCurrentAtSign();
  allEventNotifications = [];
  allPastEventNotifications = [];
  this.streamAlternative = streamAlternative;

  await VenuesServices().getVenues();

  atNotificationsController =
      StreamController<List<EventKeyLocationModel>>.broadcast();
  getAllEventNotifications();

  loggedInUserDetails = await getAtSignDetails(currentAtSign);
  getAllContactDetails(currentAtSign!);
}