TIMUIKitChat constructor

TIMUIKitChat({
  1. Key? key,
  2. String? groupID,
  3. required V2TimConversation conversation,
  4. String? conversationID,
  5. ConvType? conversationType,
  6. List<V2TimGroupMemberFullInfo?>? groupMemberList,
  7. String? conversationShowName,
  8. String? abstractMessageBuilder(
    1. V2TimMessage message
    )?,
  9. void onTapAvatar(
    1. String userID,
    2. TapDownDetails tapDetails
    )?,
  10. @Deprecated("Nickname will not show in one-to-one chat, if you tend to control it in group chat, please use `isShowSelfNameInGroup` and `isShowOthersNameInGroup` from `config: TIMUIKitChatConfig` instead") bool showNickName = false,
  11. bool showTotalUnReadCount = false,
  12. MessageItemBuilder? messageItemBuilder,
  13. @Deprecated("Please use [extraTipsActionItemBuilder] instead") Widget? exteraTipsActionItemBuilder(
    1. V2TimMessage message,
    2. dynamic closeTooltip(), [
    3. Key? key,
    4. BuildContext? context,
    ])?,
  14. Widget? extraTipsActionItemBuilder(
    1. V2TimMessage message,
    2. dynamic closeTooltip(), [
    3. Key? key,
    4. BuildContext? context,
    ])?,
  15. String? draftText,
  16. String? textFieldHintText,
  17. V2TimMessage? initFindingMsg,
  18. Widget userAvatarBuilder(
    1. BuildContext context,
    2. V2TimMessage message
    )?,
  19. AppBar? appBarConfig,
  20. TIMUIKitChatController? controller,
  21. MorePanelConfig? morePanelConfig,
  22. CustomStickerPanel? customStickerPanel,
  23. TIMUIKitChatConfig? config = const TIMUIKitChatConfig(),
  24. TongueItemBuilder? tongueItemBuilder,
  25. List<V2TimGroupAtInfo?>? groupAtInfoList,
  26. TIMUIKitHistoryMessageListConfig? mainHistoryListConfig,
  27. ValueChanged<String>? onDealWithGroupApplication,
  28. ToolTipsConfig? toolTipsConfig,
  29. ChatLifeCycle? lifeCycle,
  30. Widget? topFixWidget = const SizedBox(),
  31. Widget textFieldBuilder(
    1. BuildContext context
    )?,
  32. List<CustomEmojiFaceData> customEmojiStickerList = const [],
  33. Widget? customAppBar,
  34. Widget? inputTopBuilder,
  35. void onSecondaryTapAvatar(
    1. String userID,
    2. TapDownDetails tapDetails
    )?,
  36. Widget? customMessageHoverBarOnDesktop(
    1. V2TimMessage message
    )?,
})

Implementation

TIMUIKitChat(
    {Key? key,
    this.groupID,
    required this.conversation,
    this.conversationID,
    this.conversationType,
    this.groupMemberList,
    this.conversationShowName,
    this.abstractMessageBuilder,
    this.onTapAvatar,
    @Deprecated("Nickname will not show in one-to-one chat, if you tend to control it in group chat, please use `isShowSelfNameInGroup` and `isShowOthersNameInGroup` from `config: TIMUIKitChatConfig` instead") this.showNickName = false,
    this.showTotalUnReadCount = false,
    this.messageItemBuilder,
    @Deprecated("Please use [extraTipsActionItemBuilder] instead") this.exteraTipsActionItemBuilder,
    this.extraTipsActionItemBuilder,
    this.draftText,
    this.textFieldHintText,
    this.initFindingMsg,
    this.userAvatarBuilder,
    this.appBarConfig,
    this.controller,
    this.morePanelConfig,
    this.customStickerPanel,
    this.config = const TIMUIKitChatConfig(),
    this.tongueItemBuilder,
    this.groupAtInfoList,
    this.mainHistoryListConfig,
    this.onDealWithGroupApplication,
    this.toolTipsConfig,
    this.lifeCycle,
    this.topFixWidget = const SizedBox(),
    this.textFieldBuilder,
    this.customEmojiStickerList = const [],
    this.customAppBar,
    this.inputTopBuilder,
    this.onSecondaryTapAvatar,
    this.customMessageHoverBarOnDesktop})
    : super(key: key) {
  startTime = DateTime.now().millisecondsSinceEpoch;
}