ContactsViewArguments class
- Implemented types
Constructors
-
ContactsViewArguments.new({ContactListViewController? controller, ChatUIKitAppBarModel? appBarModel, bool enableAppBar = true, bool enableSearchBar = true, void onSearchTap(List<
ContactItemModel> data)?, ChatUIKitContactItemBuilder? itemBuilder, void onTap(BuildContext context, ContactItemModel model)?, void onLongPress(BuildContext context, ContactItemModel model)?, String? searchHideText, Widget? listViewBackground, String? loadErrorMessage, List<NeedAlphabeticalWidget> ? beforeItems, List<NeedAlphabeticalWidget> ? afterItems, ChatUIKitViewObserver? viewObserver, String? sortAlphabetical, String universalAlphabetical = '#', void onSelectLetterChanged(BuildContext context, String? letter)?, bool enableSorting = true, bool showAlphabeticalIndicator = true, String? attributes})
Properties
-
afterItems
→ List<
NeedAlphabeticalWidget> ? -
联系人列表之后的数据。
final
- appBarModel → ChatUIKitAppBarModel?
-
final
- attributes ↔ String?
-
View 附加属性,设置后的内容将会带入到下一个页面。
getter/setter pairoverride
-
beforeItems
→ List<
NeedAlphabeticalWidget> ? -
联系人列表之前的数据。
final
- controller → ContactListViewController?
-
联系人列表控制器,用于控制联系人列表数据,如果不设置将会自动创建。详细参考 ContactListViewController。
final
- enableAppBar → bool
-
是否显示AppBar, 默认为
true
。 当为false
时将不会显示AppBar。同时也会影响到是否显示标题。final - enableSearchBar → bool
-
是否开启搜索框,默认为
true
。如果设置为false
将不会显示搜索框。final - enableSorting → bool
-
是否进行首字母排序
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- itemBuilder → ChatUIKitContactItemBuilder?
-
联系人列表的
item
构建器,如果设置后需要显示联系人时会直接回调,如果不处理可以返回null
。final - listViewBackground → Widget?
-
联系人列表的背景,联系人为空时会显示,如果设置后将会替换默认的背景。
final
- loadErrorMessage → String?
-
联系人列表的加载错误提示,如果设置后将会替换默认的错误提示。
final
- onLongPress → void Function(BuildContext context, ContactItemModel model)?
-
长按联系人列表的回调,长按后会把当前的联系人数据传递过来。具体参考 ContactItemModel。
final
-
onSearchTap
→ void Function(List<
ContactItemModel> data)? -
点击搜索按钮的回调,点击后会把当前的联系人列表数据传递过来。如果不设置默认会跳转到搜索页面。具体参考 SearchView。
final
- onSelectLetterChanged → void Function(BuildContext context, String? letter)?
-
final
- onTap → void Function(BuildContext context, ContactItemModel model)?
-
点击联系人列表的回调,点击后会把当前的联系人数据传递过来。具体参考 ContactItemModel。 如果不是设置默认会跳转到联系人详情页面。具体参考 ContactDetailsView。
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchHideText → String?
-
联系人搜索框的隐藏文字。
final
- showAlphabeticalIndicator → bool
-
是否显示字母索引
final
- sortAlphabetical → String?
-
字母排序
final
- universalAlphabetical → String
-
通讯录列表的字母排序默认字,默认为 '#'
final
- viewObserver ↔ ChatUIKitViewObserver?
-
getter/setter pairoverride
Methods
-
copyWith(
{ContactListViewController? controller, ChatUIKitAppBarModel? appBarModel, void onSearchTap(List< ContactItemModel> data)?, ChatUIKitContactItemBuilder? itemBuilder, void onTap(BuildContext context, ContactItemModel model)?, void onLongPress(BuildContext context, ContactItemModel model)?, String? searchHideText, Widget? listViewBackground, String? loadErrorMessage, bool? enableSearchBar, bool? enableAppBar, String? title, ChatUIKitViewObserver? viewObserver, String? attributes, Widget? appBarLeading, String? universalAlphabetical, String? sortAlphabetical, bool? enableSorting, bool? showAlphabeticalIndicator, dynamic onSelectLetterChanged(BuildContext context, String? letter)?, ChatUIKitAppBarActionsBuilder? appBarTrailingActionsBuilder}) → ContactsViewArguments -
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