SearchDialogWidget constructor

const SearchDialogWidget({
  1. Key? key,
  2. required String keyName,
  3. required List items,
  4. required String hintText,
  5. String? dialogTitle = "Search",
  6. Color? dialogBgColor = Colors.white,
  7. Color? closeButtonColor = Colors.red,
  8. Color? closeButtonIconColor = Colors.white,
  9. required dynamic onSelected(
    1. dynamic
    ),
})

Creates a SearchDialogWidget.

keyName, items, hintText, and onSelected must not be null.

Implementation

const SearchDialogWidget({
  super.key,
  required this.keyName,
  required this.items,
  required this.hintText,
  this.dialogTitle = "Search",
  this.dialogBgColor = Colors.white,
  this.closeButtonColor = Colors.red,
  this.closeButtonIconColor = Colors.white,
  required this.onSelected,
});