ContactListView constructor

const ContactListView({
  1. ContactListViewController? controller,
  2. ChatUIKitContactItemBuilder? itemBuilder,
  3. List<Widget>? beforeWidgets,
  4. List<Widget>? afterWidgets,
  5. void onSearchTap(
    1. List<ContactItemModel> data
    )?,
  6. String? searchBarHideText,
  7. Widget? emptyBackground,
  8. String? errorMessage,
  9. String? reloadMessage,
  10. bool enableSearchBar = true,
  11. bool enableSorting = true,
  12. bool showAlphabeticalIndicator = true,
  13. void onTap(
    1. BuildContext context,
    2. ContactItemModel model
    )?,
  14. void onLongPress(
    1. BuildContext context,
    2. ContactItemModel model
    )?,
  15. String? sortAlphabetical,
  16. String specialAlphabeticalLetter = '#',
  17. void onSelectLetterChanged(
    1. BuildContext context,
    2. String? letter
    )?,
  18. Key? key,
})

Implementation

const ContactListView({
  this.controller,
  this.itemBuilder,
  this.beforeWidgets,
  this.afterWidgets,
  this.onSearchTap,
  this.searchBarHideText,
  this.emptyBackground,
  this.errorMessage,
  this.reloadMessage,
  this.enableSearchBar = true,
  this.enableSorting = true,
  this.showAlphabeticalIndicator = true,
  this.onTap,
  this.onLongPress,
  this.sortAlphabetical,
  this.specialAlphabeticalLetter = '#',
  this.onSelectLetterChanged,
  super.key,
});