copyWith method

ImSession copyWith({
  1. num? id,
  2. num? uid,
  3. String? avatar,
  4. String? nickName,
  5. dynamic sessionType,
  6. num? lastMessageId,
  7. dynamic lastMessageType,
  8. num? lastMessageStatus,
  9. String? lastMessageContent,
  10. dynamic lastMessageTime,
  11. num? unreadCount,
})

Implementation

ImSession copyWith({
  num? id,
  num? uid,
  String? avatar,
  String? nickName,
  dynamic sessionType,
  num? lastMessageId,
  dynamic lastMessageType,
  num? lastMessageStatus,
  String? lastMessageContent,
  dynamic lastMessageTime,
  num? unreadCount,
}) =>
    ImSession(
      id: id ?? this.id,
      uid: uid ?? this.uid,
      avatar: avatar ?? this.avatar,
      nickName: nickName ?? this.nickName,
      sessionType: sessionType ?? this.sessionType,
      lastMessageId: lastMessageId ?? this.lastMessageId,
      lastMessageType: lastMessageType ?? this.lastMessageType,
      lastMessageStatus: lastMessageStatus ?? this.lastMessageStatus,
      lastMessageContent: lastMessageContent ?? this.lastMessageContent,
      lastMessageTime: lastMessageTime ?? this.lastMessageTime,
      unreadCount: unreadCount ?? this.unreadCount,
    );