ready method
void
ready()
Implementation
void ready() {
debugPrint("Chat controller ready");
_loadMessages();
cancelNotification();
// debugPrint("isBlocked===> ${profile.isBlocked}");
// debugPrint("profile detail===> ${profile.toJson().toString()}");
getUnsentMessageOfAJid();
isBlocked(profile.isBlocked);
controller = AnimationController(
vsync: this,
duration: const Duration(milliseconds: 600),
);
memberOfGroup();
setChatStatus();
focusNode.addListener(() {
if (focusNode.hasFocus) {
showEmoji(false);
}
});
newItemPositionsListener?.itemPositions.addListener(() {
var pos = lastVisiblePosition();
if (pos >= 1) {
showHideRedirectToLatest(true);
} else {
showHideRedirectToLatest(false);
unreadCount(0);
}
});
setOnGoingUserAvail();
debugPrint(profile.image);
}