SuggestStyles constructor

SuggestStyles({
  1. Style? title,
  2. Style? value,
  3. Style? placeholder,
  4. Style? highlighted,
  5. Style? suggestion,
  6. Style? hint,
  7. Style? dimmed,
  8. String? pointer,
})

Creates styles with sensible defaults.

Implementation

SuggestStyles({
  Style? title,
  Style? value,
  Style? placeholder,
  Style? highlighted,
  Style? suggestion,
  Style? hint,
  Style? dimmed,
  String? pointer,
}) : title = title ?? Style().foreground(AnsiColor(11)).bold(),
     value = value ?? Style(),
     placeholder = placeholder ?? Style().foreground(AnsiColor(8)),
     highlighted = highlighted ?? Style().foreground(AnsiColor(14)).bold(),
     suggestion = suggestion ?? Style(),
     hint = hint ?? Style().foreground(AnsiColor(8)),
     dimmed = dimmed ?? Style().foreground(AnsiColor(8)),
     pointer = pointer ?? '❯';