ProfileWidgetBuilder class

Constructors

ProfileWidgetBuilder({Widget operationDivider()?, Widget remarkBar(String remark, dynamic handleTap()?)?, Widget addToBlockListBar(bool isAsBlocked, dynamic onChange(bool value)?)?, Widget pinConversationBar(bool isPinned, dynamic onChange(bool value)?)?, Widget messageMute(bool isMute, dynamic onChange(bool value)?)?, Widget operationItem({void onSwitchChange(bool newValue)?, required String operationName, String? operationText, bool? operationValue, required String type})?, Widget searchBar(V2TimConversation conversation)?, Widget portraitBar(V2TimUserFullInfo? userInfo)?, Widget nicknameBar(String nickName)?, Widget userAccountBar(String userAccount)?, Widget signatureBar(String signature)?, Widget genderBar(int gender)?, Widget birthdayBar(int? birthday)?, Widget userInfoCard(V2TimUserFullInfo? userInfo)?, Widget addAndDeleteArea(V2TimFriendInfo friendInfo, V2TimConversation conversation, int friendType, bool isDisturb)?, Widget customBuilderOne(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?, Widget customBuilderTwo(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?, Widget customBuilderThree(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?, Widget customBuilderFive(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?, Widget customBuilderFour(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?})

Properties

addAndDeleteArea Widget Function(V2TimFriendInfo friendInfo, V2TimConversation conversation, int friendType, bool isDisturb)?
The area shows the buttons, contains "Send message", "Voice/Video Call", "Delete friend" when has the friend relationship, while contains "Add friend" when no relationship exists, as default.
getter/setter pair
addToBlockListBar Widget Function(bool isAsBlocked, dynamic onChange(bool value)?)?
The switch of if add another user to block list. This will not shows when friendship relation not exist as default.
getter/setter pair
birthdayBar Widget Function(int? birthday)?
The bar shows the birthday of a specific user. Int like "19981111", means November 11, 1998.
getter/setter pair
customBuilderFive Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?
Custom area, you may define send message, make calling, search or anything you want here.
getter/setter pair
customBuilderFour Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?
Custom area, you may define send message, make calling, search or anything you want here.
getter/setter pair
customBuilderOne Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?
Custom area, you may define send message, make calling, search or anything you want here.
getter/setter pair
customBuilderThree Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?
Custom area, you may define send message, make calling, search or anything you want here.
getter/setter pair
customBuilderTwo Widget Function(bool isFriend, V2TimFriendInfo friendInfo, V2TimConversation conversation)?
Custom area, you may define send message, make calling, search or anything you want here.
getter/setter pair
genderBar Widget Function(int gender)?
The bar shows the gender of a specific user. 1 represent male, 2 represent female.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
messageMute Widget Function(bool isMute, dynamic onChange(bool value)?)?
The switch of if mute the message notification from a specific user. This will not shows when friendship relation not exist as default.
getter/setter pair
nicknameBar Widget Function(String nickName)?
The bar shows the nickname of a specific user.
getter/setter pair
operationDivider Widget Function()?
The divider between sets of profile widget
getter/setter pair
operationItem Widget Function({void onSwitchChange(bool newValue)?, required String operationName, String? operationText, bool? operationValue, required String type})?
Override the default operation item style for un-customized profile widget.
getter/setter pair
pinConversationBar Widget Function(bool isPinned, dynamic onChange(bool value)?)?
The switch of if pin the one-to-one conversation to the top of the conversation list. This will not shows when friendship relation not exist as default.
getter/setter pair
portraitBar Widget Function(V2TimUserFullInfo? userInfo)?
The bar shows the portrait.
getter/setter pair
remarkBar Widget Function(String remark, dynamic handleTap()?)?
The setting of remark for a specific user
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
The entrance to search page, please set the onTap callback yourself, to the search page with conversation ID. You can develop it with TIMUIKitProfileWidget.searchBar.
getter/setter pair
signatureBar Widget Function(String signature)?
The bar shows the signature of a specific user.
getter/setter pair
userAccountBar Widget Function(String userAccount)?
The bar shows the user account of a specific user.
getter/setter pair
userInfoCard Widget Function(V2TimUserFullInfo? userInfo)?
THe card shows the user info of a specific user.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited