ContactsView constructor

const ContactsView({
  1. ChatUIKitAppBarModel? appBarModel,
  2. bool enableAppBar = true,
  3. bool enableSearchBar = true,
  4. void onSearchTap(
    1. List<ContactItemModel> data
    )?,
  5. String? searchHideText,
  6. Widget? listViewBackground,
  7. void onTap(
    1. BuildContext context,
    2. ContactItemModel model
    )?,
  8. void onLongPress(
    1. BuildContext context,
    2. ContactItemModel model
    )?,
  9. ChatUIKitContactItemBuilder? itemBuilder,
  10. ContactListViewController? controller,
  11. String? loadErrorMessage,
  12. List<NeedAlphabeticalWidget>? beforeItems,
  13. List<NeedAlphabeticalWidget>? afterItems,
  14. String? attributes,
  15. ChatUIKitViewObserver? viewObserver,
  16. String specialAlphabeticalLetter = '#',
  17. String? sortAlphabetical,
  18. void onSelectLetterChanged(
    1. BuildContext context,
    2. String? letter
    )?,
  19. bool enableSorting = true,
  20. bool showAlphabeticalIndicator = true,
  21. Key? key,
})

Implementation

const ContactsView({
  this.appBarModel,
  this.enableAppBar = true,
  this.enableSearchBar = true,
  this.onSearchTap,
  this.searchHideText,
  this.listViewBackground,
  this.onTap,
  this.onLongPress,
  this.itemBuilder,
  this.controller,
  this.loadErrorMessage,
  this.beforeItems,
  this.afterItems,
  this.attributes,
  this.viewObserver,
  this.specialAlphabeticalLetter = '#',
  this.sortAlphabetical,
  this.onSelectLetterChanged,
  this.enableSorting = true,
  this.showAlphabeticalIndicator = true,
  super.key,
});