copyWith method

ImMessage copyWith({
  1. num? id,
  2. num? uid,
  3. bool? isSender,
  4. String? senderAvatar,
  5. String? receiverAvatar,
  6. dynamic messageContent,
  7. dynamic messageType,
  8. num? messageStatus,
  9. num? messageTime,
})

Implementation

ImMessage copyWith({
  num? id,
  num? uid,
  bool? isSender,
  String? senderAvatar,
  String? receiverAvatar,
  dynamic messageContent,
  dynamic messageType,
  num? messageStatus,
  num? messageTime,
}) =>
    ImMessage(
      id: id ?? this.id,
      uid: uid ?? this.uid,
      isSender: isSender ?? this.isSender,
      senderAvatar: senderAvatar ?? this.senderAvatar,
      receiverAvatar: receiverAvatar ?? this.receiverAvatar,
      messageContent: messageContent ?? this.messageContent,
      messageType: messageType ?? this.messageType,
      messageStatus: messageStatus ?? this.messageStatus,
      messageTime: messageTime ?? this.messageTime,
    );