ChatUserStoryConfiguration constructor

const ChatUserStoryConfiguration({
  1. required ChatService chatService,
  2. required ChatOptions chatOptionsBuilder(
    1. BuildContext context
    ),
  3. dynamic onPressStartChat()?,
  4. dynamic onPressChat(
    1. BuildContext,
    2. ChatModel
    )?,
  5. dynamic onDeleteChat(
    1. BuildContext,
    2. ChatModel
    )?,
  6. Future<void> onMessageSubmit(
    1. String text
    )?,
  7. Future<void> onReadChat(
    1. ChatModel chat
    )?,
  8. Future<void> onUploadImage(
    1. Uint8List image
    )?,
  9. dynamic onPressCreateChat(
    1. ChatUserModel
    )?,
  10. dynamic onPressCreateGroupChat()?,
  11. dynamic onPressCompleteGroupChatCreation(
    1. List<ChatUserModel>,
    2. String
    )?,
  12. Color? iconColor = Colors.black,
  13. Future<bool?> deleteChatDialog(
    1. BuildContext,
    2. ChatModel
    )?,
  14. bool disableDismissForPermanentChats = false,
  15. bool routeToNewChatIfEmpty = true,
  16. ChatTranslations translations = const ChatTranslations(),
  17. Widget chatPageBuilder(
    1. BuildContext context,
    2. Widget child
    )?,
  18. dynamic onPressChatTitle(
    1. BuildContext context,
    2. ChatModel chat
    )?,
  19. dynamic afterMessageSent(
    1. String chatId
    )?,
  20. int messagePageSize = 20,
  21. dynamic onPressUserProfile()?,
  22. double? textfieldBottomPadding = 20,
  23. Color? iconDisabledColor = Colors.grey,
  24. TextStyle? unreadMessageTextStyle,
  25. Widget? loadingWidgetBuilder(
    1. BuildContext context
    )?,
  26. Widget usernameBuilder(
    1. String userFullName
    )?,
  27. Widget chatTitleBuilder(
    1. 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,
});