onReady method
Called 1 frame after onInit(). It is the perfect place to enter navigation events, like snackbar, dialogs, or a new route, or async request.
Implementation
@override
void onReady() {
super.onReady();
getAvailableFeatures();
debugPrint("DashboardController onReady");
createTopic();
recentChats.bindStream(recentChats.stream);
ever(recentChats, (callback) => unReadCount());
archivedChats.bindStream(archivedChats.stream);
ever(archivedChats, (callback) => archivedChatCount());
if (!Constants.enableTopic) {
getRecentChatList();
}
getArchivedChatsList();
// checkArchiveSetting();
userlistScrollController.addListener(_scrollListener);
historyScrollController.addListener(historyScrollListener);
fetchCallLogList();
callLogScrollController.addListener(_callLogScrollListener);
}