CometChatListBase constructor

const CometChatListBase({
  1. Key? key,
  2. ListBaseStyle style = const ListBaseStyle(),
  3. Widget? backIcon,
  4. required String title,
  5. bool? hideSearch = false,
  6. Widget? searchBoxIcon,
  7. required Widget container,
  8. bool? showBackButton = false,
  9. void onSearch(
    1. String val
    )?,
  10. List<Widget>? menuOptions,
  11. String? placeholder,
  12. String? searchText,
  13. CometChatTheme? theme,
  14. VoidCallback? onBack,
  15. bool? hideAppBar = false,
})

Creates a widget that that gives CometChat ListBase UI

Implementation

const CometChatListBase(
    {super.key,
    this.style = const ListBaseStyle(),
    this.backIcon,
    required this.title,
    this.hideSearch = false,
    this.searchBoxIcon,
    required this.container,
    this.showBackButton = false,
    this.onSearch,
    this.menuOptions,
    this.placeholder,
    this.searchText,
    this.theme,
    this.onBack,
    this.hideAppBar = false});