init method

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

Implementation

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

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

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