CLCommandPalette constructor

const CLCommandPalette({
  1. Key? key,
  2. List<CLCommandItem> items = const [],
  3. List<CLCommandItem>? previewItems,
  4. Future<List<CLCommandItem>> asyncSearch(
    1. String query
    )?,
  5. int minQueryLength = 1,
  6. Duration debounce = const Duration(milliseconds: 300),
  7. void onAskAi(
    1. String query
    )?,
  8. String? askAiLabel,
  9. String? hintText,
  10. String? emptyText,
})

Implementation

const CLCommandPalette({
  super.key,
  this.items = const [],
  this.previewItems,
  this.asyncSearch,
  this.minQueryLength = 1,
  this.debounce = const Duration(milliseconds: 300),
  this.onAskAi,
  this.askAiLabel,
  this.hintText,
  this.emptyText,
});