init method
void
init(
- AtClientImpl clientInstance, {
- dynamic streamAlternative()?,
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!);
}