BlockListView constructor

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

Implementation

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