ChatUserStoryConfiguration constructor
- required ChatService chatService,
- required ChatOptions chatOptionsBuilder(
- BuildContext context
- dynamic onPressStartChat()?,
- dynamic onPressChat()?,
- dynamic onDeleteChat()?,
- Future<
void> onMessageSubmit(- String text
- Future<
void> onReadChat(- ChatModel chat
- Future<
void> onUploadImage(- Uint8List image
- dynamic onPressCreateChat()?,
- dynamic onPressCreateGroupChat()?,
- dynamic onPressCompleteGroupChatCreation()?,
- Color? iconColor = Colors.black,
- Future<
bool?> deleteChatDialog()?, - bool disableDismissForPermanentChats = false,
- bool routeToNewChatIfEmpty = true,
- ChatTranslations translations = const ChatTranslations(),
- Widget chatPageBuilder(
- BuildContext context,
- Widget child
- dynamic onPressChatTitle(
- BuildContext context,
- ChatModel chat
- dynamic afterMessageSent(
- String chatId
- int messagePageSize = 20,
- dynamic onPressUserProfile()?,
- double? textfieldBottomPadding = 20,
- Color? iconDisabledColor = Colors.grey,
- TextStyle? unreadMessageTextStyle,
- Widget? loadingWidgetBuilder(
- BuildContext context
- Widget usernameBuilder(
- String userFullName
- Widget chatTitleBuilder(
- String chatTitle
Creates a new instance of ChatUserStoryConfiguration
.
Implementation
const ChatUserStoryConfiguration({
required this.chatService,
required this.chatOptionsBuilder,
this.onPressStartChat,
this.onPressChat,
this.onDeleteChat,
this.onMessageSubmit,
this.onReadChat,
this.onUploadImage,
this.onPressCreateChat,
this.onPressCreateGroupChat,
this.onPressCompleteGroupChatCreation,
this.iconColor = Colors.black,
this.deleteChatDialog,
this.disableDismissForPermanentChats = false,
this.routeToNewChatIfEmpty = true,
this.translations = const ChatTranslations(),
this.chatPageBuilder,
this.onPressChatTitle,
this.afterMessageSent,
this.messagePageSize = 20,
this.onPressUserProfile,
this.textfieldBottomPadding = 20,
this.iconDisabledColor = Colors.grey,
this.unreadMessageTextStyle,
this.loadingWidgetBuilder,
this.usernameBuilder,
this.chatTitleBuilder,
});