TIMUIKitSearch constructor

const TIMUIKitSearch({
  1. required dynamic onTapConversation(
    1. V2TimConversation,
    2. V2TimMessage?
    ),
  2. Key? key,
  3. @Deprecated("You are supposed to use [TIMUIKitSearchMsgDetail], if you tend to search inside a specific conversation, includes c2c and group") V2TimConversation? conversation,
  4. @Deprecated("You are supposed to use [onEnterSearchInConversation], though the effects are the same.") dynamic onEnterConversation(
    1. V2TimConversation conversation,
    2. String initKeyword
    )?,
  5. bool? isAutoFocus = true,
  6. dynamic onEnterSearchInConversation(
    1. V2TimConversation conversation,
    2. String initKeyword
    )?,
  7. VoidCallback? onBack,
})

Implementation

const TIMUIKitSearch(
    {required this.onTapConversation,
    Key? key,
    @Deprecated("You are supposed to use [TIMUIKitSearchMsgDetail], if you tend to search inside a specific conversation, includes c2c and group")
        this.conversation,
    @Deprecated("You are supposed to use [onEnterSearchInConversation], though the effects are the same.")
        this.onEnterConversation,
    this.isAutoFocus = true,
    this.onEnterSearchInConversation,
    this.onBack})
    : super(key: key);