DefaultItemDelegate constructor

DefaultItemDelegate({
  1. Style? normalStyle,
  2. Style? selectedStyle,
  3. Style? matchedStyle,
})

Creates a default item delegate.

Implementation

DefaultItemDelegate({
  Style? normalStyle,
  Style? selectedStyle,
  Style? matchedStyle,
}) : normalStyle = normalStyle ?? Style(),
     selectedStyle =
         selectedStyle ?? Style().bold().foreground(AnsiColor(212)),
     matchedStyle = matchedStyle ?? Style().underline();