init method

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

Implementation

void init(AtClient? clientInstance,
    {Function(List<KeyLocationModel>)? streamAlternative}) async {
  loggedInUserDetails = null;
  atClientInstance = clientInstance;
  currentAtSign = atClientInstance!.getCurrentAtSign();
  allLocationNotifications = [];
  this.streamAlternative = streamAlternative;

  atNotificationsController =
      StreamController<List<KeyLocationModel>>.broadcast();
  getAllNotifications();

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