onMessageContentChanged method

  1. @override
void onMessageContentChanged(
  1. Message message,
  2. String operatorId,
  3. int operationTime
)
override

Implementation

@override
void onMessageContentChanged(
  Message message,
  String operatorId,
  int operationTime,
) {
  final index = msgModelList
      .indexWhere((element) => element.message.msgId == message.msgId);
  if (index != -1) {
    msgModelList[index] = msgModelList[index].copyWith(message: message);
    refresh();
  }
}