DeadSimpleChat constructor
const
DeadSimpleChat({
- Key? key,
- String? url,
- bool debug = false,
- required String roomId,
- required String publicKey,
- DeadSimpleChatController? controller,
- void onMessage()?,
- void onChannelSelected()?,
- void onRoomJoined()?,
- void onMessageHistory()?,
- void onMessageApproved()?,
- void onMessageDeleted()?,
- void onUpdateUsers()?,
- void onInvalidRoomPassword()?,
- void onRoomLimitReached()?,
- void onNotAuthorized()?,
- void onMessageLiked()?,
- void onConversationCreated()?,
- void onConversationMessage()?,
- void onChannelCreated()?,
- void onChannelMessage()?,
- void onChannelMessageDeleted()?,
- void onChannelMessageApproved()?,
- void onChannelMessageLiked()?,
- void onConnectError()?,
- void onConnectSuccess()?,
- void onJoinRoomError()?,
- void onLoadCustomizationSuccess()?,
- void onLoadCustomizationError()?,
- void onLoadTranslationSuccess()?,
- void onLoadTranslationError()?,
- void onSendMessageError()?,
Implementation
const DeadSimpleChat({
Key? key,
this.url,
this.debug = false,
required this.roomId,
required this.publicKey,
this.controller,
this.onMessage,
this.onChannelSelected,
this.onRoomJoined,
this.onMessageHistory,
this.onMessageApproved,
this.onMessageDeleted,
this.onUpdateUsers,
this.onInvalidRoomPassword,
this.onRoomLimitReached,
this.onNotAuthorized,
this.onMessageLiked,
this.onConversationCreated,
this.onConversationMessage,
this.onChannelCreated,
this.onChannelMessage,
this.onChannelMessageDeleted,
this.onChannelMessageApproved,
this.onChannelMessageLiked,
this.onConnectError,
this.onConnectSuccess,
this.onJoinRoomError,
this.onLoadCustomizationSuccess,
this.onLoadCustomizationError,
this.onLoadTranslationSuccess,
this.onLoadTranslationError,
this.onSendMessageError,
}) : super(key: key);