SearchStyles constructor

SearchStyles({
  1. Style? title,
  2. Style? prompt,
  3. Style? item,
  4. Style? selectedItem,
  5. Style? matchHighlight,
  6. Style? cursor,
  7. Style? dimmed,
  8. Style? noResults,
  9. String? cursorPrefix,
  10. String? itemPrefix,
})

Implementation

SearchStyles({
  Style? title,
  Style? prompt,
  Style? item,
  Style? selectedItem,
  Style? matchHighlight,
  Style? cursor,
  Style? dimmed,
  Style? noResults,
  String? cursorPrefix,
  String? itemPrefix,
}) : title = title ?? Style().bold(),
     prompt = prompt ?? Style().foreground(AnsiColor(11)),
     item = item ?? Style(),
     selectedItem = selectedItem ?? Style().foreground(AnsiColor(14)),
     matchHighlight =
         matchHighlight ?? Style().foreground(AnsiColor(11)).bold(),
     cursor = cursor ?? Style().foreground(AnsiColor(14)),
     dimmed = dimmed ?? Style().foreground(AnsiColor(8)),
     noResults = noResults ?? Style().foreground(AnsiColor(8)).italic(),
     cursorPrefix = cursorPrefix ?? '❯ ',
     itemPrefix = itemPrefix ?? '  ';