copyWith method
ImSession
copyWith(
{ - num? id,
- num? uid,
- String? avatar,
- String? nickName,
- dynamic sessionType,
- num? lastMessageId,
- dynamic lastMessageType,
- num? lastMessageStatus,
- String? lastMessageContent,
- dynamic lastMessageTime,
- 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,
);