NiceLookup<T> constructor

const NiceLookup<T>({
  1. Key? key,
  2. required Future<List<T>> onSearch(
    1. String query
    ),
  3. required String itemLabel(
    1. T item
    ),
  4. required List<NiceLookupColumn<T>> columns,
  5. T? value,
  6. String? label,
  7. String? hint,
  8. String? errorText,
  9. bool enabled = true,
  10. ValueChanged<T>? onSelected,
})

Implementation

const NiceLookup({
  super.key,
  required this.onSearch,
  required this.itemLabel,
  required this.columns,
  this.value,
  this.label,
  this.hint,
  this.errorText,
  this.enabled = true,
  this.onSelected,
});