FilterableList constructor

const FilterableList({
  1. Key? key,
  2. required List<String> items,
  3. required dynamic onItemTapped(
    1. String
    ),
  4. Widget? loader,
  5. Widget suggestionBuilder(
    1. String data
    )?,
  6. double elevation = 5,
  7. double maxListHeight = 150,
  8. TextStyle suggestionTextStyle = const TextStyle(),
  9. Color? suggestionBackgroundColor,
  10. bool loading = false,
})

Implementation

const FilterableList({
  Key? key,
  required this.items,
  required this.onItemTapped,
  this.loader,
  this.suggestionBuilder,
  this.elevation = 5,
  this.maxListHeight = 150,
  this.suggestionTextStyle = const TextStyle(),
  this.suggestionBackgroundColor,
  this.loading = false
}) : super(key: key);