ChatUIKitAlphabeticalWidget constructor

const ChatUIKitAlphabeticalWidget({
  1. required List<ChatUIKitListItemModelBase> list,
  2. required ScrollController scrollController,
  3. required ListViewBuilder builder,
  4. required bool enableSorting,
  5. required bool showAlphabeticalIndicator,
  6. String? groupId,
  7. TextStyle? selectionTextStyle,
  8. double selectionHeight = 32,
  9. Color? selectionBackgroundColor,
  10. String specialAlphabeticalLetter = '#',
  11. String? sortAlphabetical,
  12. double rightPadding = 2,
  13. void onSelectLetterChanged(
    1. BuildContext context,
    2. String? letter
    )?,
  14. bool highlight = true,
  15. Color? highlightColor,
  16. bool listViewHasSearchBar = true,
  17. List<Widget>? beforeWidgets,
  18. AlphabeticalItemModel? itemModelBuilder(
    1. String alphabetical
    )?,
  19. Key? key,
})

Implementation

const ChatUIKitAlphabeticalWidget({
  required this.list,
  required this.scrollController,
  required this.builder,
  required this.enableSorting,
  required this.showAlphabeticalIndicator,
  this.groupId,
  this.selectionTextStyle,
  this.selectionHeight = 32,
  this.selectionBackgroundColor,
  this.specialAlphabeticalLetter = '#',
  this.sortAlphabetical,
  this.rightPadding = 2,
  this.onSelectLetterChanged,
  this.highlight = true,
  this.highlightColor,
  this.listViewHasSearchBar = true,
  this.beforeWidgets,
  this.itemModelBuilder,
  super.key,
});