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,
- Map<
String, dynamic> ? extSettings,
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,
Map<String, dynamic>? extSettings,
}) {
return EMOptions._(
appKey: appKey,
appId: appId,
autoLogin: autoLogin,
debugMode: debugMode,
acceptInvitationAlways:
acceptInvitationAlways ?? this.acceptInvitationAlways,
autoAcceptGroupInvitation:
autoAcceptGroupInvitation ?? this.autoAcceptGroupInvitation,
requireAck: requireAck ?? this.requireAck,
requireDeliveryAck: requireDeliveryAck ?? this.requireDeliveryAck,
deleteMessagesAsExitGroup:
deleteMessagesWhenLeaveGroup ?? deleteMessagesAsExitGroup,
deleteMessagesAsExitChatRoom:
deleteMessageWhenLeaveRoom ?? deleteMessagesAsExitChatRoom,
isChatRoomOwnerLeaveAllowed:
roomOwnerCanLeave ?? isChatRoomOwnerLeaveAllowed,
sortMessageByServerTime:
sortMessageByServerTime ?? this.sortMessageByServerTime,
usingHttpsOnly: usingHttpsOnly ?? this.usingHttpsOnly,
serverTransfer: serverTransfer,
isAutoDownloadThumbnail: autoDownloadThumbnail ?? 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,
extSettings: extSettings,
);
}