isLastMessageRight method
Implementation
bool isLastMessageRight(int index) {
if ((index > 0 && listMessage != null && listMessage![min(index, listMessage!.length) - 1].userId != this.userId) ||
index == 0) {
return true;
} else {
return false;
}
}