isLastMessageLeft static method

bool isLastMessageLeft(
  1. dynamic listMessage,
  2. String id,
  3. int index
)

Implementation

static bool isLastMessageLeft(var listMessage, String id, int index) {
  if ((index > 0 &&
          listMessage != null &&
          listMessage[index - 1].get('idFrom') == id) ||
      index == 0) {
    return true;
  } else {
    return false;
  }
}