init method

void init(
  1. String currentAtSignFromApp,
  2. AtClientImpl atClientInstanceFromApp, {
  3. Function? newGetAtValueFromMainApp,
})

Implementation

void init(String currentAtSignFromApp, AtClientImpl atClientInstanceFromApp,
    {Function? newGetAtValueFromMainApp}) {
  atClientInstance = atClientInstanceFromApp;
  currentAtSign = currentAtSignFromApp;
  allReceivedUsersList = [];
  _allReceivedUsersController =
      StreamController<List<HybridModel>?>.broadcast();

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

  getAllLocationData();
}