Chat constructor
Chat({
- Key? key,
- required Config config,
- required User user,
- String? backgroundImage,
- BoxDecoration? dateBoxDecoration,
- Map<
String, dynamic> ? customData, - TextStyle? dateTextStyle,
- TextStyle? messageTextStyle,
- Color? emojiIconColor,
- Color? attachmentIconColor,
- Color? attachmentModalBgColor,
- Color? micActiveIconColor,
- Color? micInActiveIconColor,
- Color? micSendBgColor,
- Color? sendIconColor,
- TextStyle? hintStyle,
- TextStyle? appBarTitleStyle,
- Color? appBarBgColor,
- Gradient? appBarGradientBgColor,
- IconThemeData? appBarIconTheme,
- Color? loaderColor,
- bool? appBarCenterTitle,
- BoxDecoration? backgroundDecoration,
- BoxDecoration? feedBackContainerDecoration,
- Color? feedBackActiveColor,
- Color? feedBackInActiveColor,
- Color? feedbackTextActiveColor,
- Color? feedbackTextInActiveColor,
- Color? deleteVoiceMessageIconColor,
- Color? sendVoiceMessageIconColor,
- Color? messageBoxBgColor,
- dynamic downloadAudio({
- required dynamic stopLoading(),
- required String url,
- dynamic downloadVideo({
- required dynamic stopLoading(),
- required String url,
- dynamic downloadFile({
- required dynamic stopLoading(),
- required String url,
- dynamic downloadImage({
- required dynamic stopLoading(),
- required String url,
- dynamic chatStyle,
Implementation
Chat(
{super.key,
required this.config,
required this.user,
this.backgroundImage,
this.dateBoxDecoration,
this.customData,
this.dateTextStyle,
this.messageTextStyle,
this.emojiIconColor,
this.attachmentIconColor,
this.attachmentModalBgColor,
this.micActiveIconColor,
this.micInActiveIconColor,
this.micSendBgColor,
this.sendIconColor,
this.hintStyle,
this.appBarTitleStyle,
this.appBarBgColor,
this.appBarGradientBgColor,
this.appBarIconTheme,
this.loaderColor,
this.appBarCenterTitle,
this.backgroundDecoration,
this.feedBackContainerDecoration,
this.feedBackActiveColor,
this.feedBackInActiveColor,
this.feedbackTextActiveColor,
this.feedbackTextInActiveColor,
this.deleteVoiceMessageIconColor,
this.sendVoiceMessageIconColor,
this.messageBoxBgColor,
this.downloadAudio,
this.downloadVideo,
this.downloadFile,
this.downloadImage,
chatStyle})
: chatStyle = chatStyle ?? ChatStyle();