copyWith method
EMOptions
copyWith({ - bool? usingHttpsOnly,
- String? loginExtension,
- bool? deleteMessageWhenLeaveRoom,
- bool? deleteMessagesWhenLeaveGroup,
- bool? roomOwnerCanLeave,
- bool? autoAcceptGroupInvitation,
- bool? acceptInvitationAlways,
- bool? autoDownloadThumbnail,
- bool? requireDeliveryAck,
- bool? requireAck,
- bool? sortMessageByServerTime,
- bool? messagesReceiveCallbackIncludeSend,
- bool? regardImportMessagesAsRead,
})
Implementation
EMOptions copyWith({
bool? usingHttpsOnly,
String? loginExtension,
bool? deleteMessageWhenLeaveRoom,
bool? deleteMessagesWhenLeaveGroup,
bool? roomOwnerCanLeave,
bool? autoAcceptGroupInvitation,
bool? acceptInvitationAlways,
bool? autoDownloadThumbnail,
bool? requireDeliveryAck,
bool? requireAck,
bool? sortMessageByServerTime,
bool? messagesReceiveCallbackIncludeSend,
bool? regardImportMessagesAsRead,
}) {
return EMOptions(
appKey: appKey,
autoLogin: autoLogin,
debugMode: debugMode,
acceptInvitationAlways:
acceptInvitationAlways ?? this.acceptInvitationAlways,
autoAcceptGroupInvitation:
autoAcceptGroupInvitation ?? this.autoAcceptGroupInvitation,
requireAck: requireAck ?? this.requireAck,
requireDeliveryAck: requireDeliveryAck ?? this.requireDeliveryAck,
deleteMessagesAsExitGroup:
deleteMessagesWhenLeaveGroup ?? this.deleteMessagesAsExitGroup,
deleteMessagesAsExitChatRoom:
deleteMessageWhenLeaveRoom ?? this.deleteMessagesAsExitChatRoom,
isChatRoomOwnerLeaveAllowed:
roomOwnerCanLeave ?? this.isChatRoomOwnerLeaveAllowed,
sortMessageByServerTime:
sortMessageByServerTime ?? this.sortMessageByServerTime,
usingHttpsOnly: usingHttpsOnly ?? this.usingHttpsOnly,
serverTransfer: serverTransfer,
isAutoDownloadThumbnail:
autoDownloadThumbnail ?? this.isAutoDownloadThumbnail,
enableDNSConfig: enableDNSConfig,
dnsUrl: dnsUrl,
restServer: restServer,
imPort: imPort,
imServer: imServer,
chatAreaCode: chatAreaCode,
enableEmptyConversation: enableEmptyConversation,
deviceName: deviceName,
osType: osType,
useReplacedMessageContents: useReplacedMessageContents,
enableTLS: enableTLS,
messagesReceiveCallbackIncludeSend: messagesReceiveCallbackIncludeSend ??
this.messagesReceiveCallbackIncludeSend,
regardImportMessagesAsRead:
regardImportMessagesAsRead ?? this.regardImportMessagesAsRead,
loginExtension: loginExtension,
);
}