NumberInputStyles constructor

NumberInputStyles({
  1. Style? prompt,
  2. Style? value,
  3. Style? placeholder,
  4. Style? hint,
  5. Style? error,
  6. Style? dimmed,
})

Creates styles with sensible defaults.

Implementation

NumberInputStyles({
  Style? prompt,
  Style? value,
  Style? placeholder,
  Style? hint,
  Style? error,
  Style? dimmed,
}) : prompt = prompt ?? Style().foreground(AnsiColor(11)).bold(),
     value = value ?? Style(),
     placeholder = placeholder ?? Style().foreground(AnsiColor(8)),
     hint = hint ?? Style().foreground(AnsiColor(8)),
     error = error ?? Style().foreground(AnsiColor(9)).bold(),
     dimmed = dimmed ?? Style().foreground(AnsiColor(8));