updateMessages method

void updateMessages({
  1. required List<V2TimMessage> messages,
})

Updates the message widgets, causing them to re-render in the widget tree.

Implementation

void updateMessages({
  required List<V2TimMessage> messages,
}) {
  for (final e in messages) {
    TencentCloudChat.instance.dataInstance.messageData.messageNeedUpdate = e;
  }
}