init method

Future<void> init(
  1. String currentAtSignFromApp,
  2. AtClient atClientInstanceFromApp, {
  3. Function? newGetAtValueFromMainApp,
})

Implementation

Future<void> init(
    String currentAtSignFromApp, AtClient atClientInstanceFromApp,
    {Function? newGetAtValueFromMainApp}) async {
  atClientInstance = atClientInstanceFromApp;
  currentAtSign = currentAtSignFromApp;
  _allReceivedUsersList = {};
  _allReceivedUsersController =
      StreamController<Map<String, HybridModel>>.broadcast();

  if (newGetAtValueFromMainApp != null) {
    getAtValueFromMainApp = newGetAtValueFromMainApp;
  } else {
    getAtValueFromMainApp = getAtValue;
  }

  await getAllLocationData();
}