onInit method
Called immediately after the widget is allocated in memory. You might use this to initialize something for the controller.
Implementation
@override
Future<void> onInit() async {
super.onInit();
getMaxCallUsersCount = (await Mirrorfly.getMaxCallUsersCount()) ?? 8;
scrollController.addListener(_scrollListener);
if (await AppUtils.isNetConnected() || Constants.enableContactSync) {
isPageLoading(true);
fetchUsers(false);
} else {
toToast(getTranslated("noInternetConnection"));
}
//Mirrorfly.syncContacts(true);
//Mirrorfly.getRegisteredUsers(true).then((value) => LogMessage.d("registeredUsers", value.toString()));
progressSpinner(
Constants.enableContactSync && await Mirrorfly.contactSyncStateValue());
}