isLastMessageRight static method

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

Implementation

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