isLastMessageLeft method

bool isLastMessageLeft(
  1. int index
)

Implementation

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