SelectPage<T> constructor

SelectPage<T>(
  1. String title,
  2. List<T> data, {
  3. Key? key,
  4. BuildCheckChild<T>? buildCheckChild,
  5. List<T>? selectedData,
  6. Compare<T>? compare,
  7. bool multiple = true,
  8. bool showSearchBar = false,
})

Implementation

SelectPage(
  this.title,
  this.data, {
  super.key,
  this.buildCheckChild,
  this.selectedData,
  this.compare,
  this.multiple = true,
  this.showSearchBar = false,
}) {
  controller.addListener(() {
    _listKey.currentState?.search(controller.text.trim());
  });
}