init method

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

Implementation

void init(AtClientImpl clientInstance,
    {Function(List<EventKeyLocationModel>)? streamAlternative}) async {
  loggedInUserDetails = null;
  atClientInstance = clientInstance;
  currentAtSign = atClientInstance!.currentAtSign;
  allEventNotifications = [];
  allPastEventNotifications = [];
  this.streamAlternative = streamAlternative;

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

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