FilePickerStyles constructor

FilePickerStyles({
  1. Style? cursor,
  2. Style? symlink,
  3. Style? directory,
  4. Style? file,
  5. Style? permission,
  6. Style? selected,
  7. Style? disabledCursor,
  8. Style? disabledFile,
  9. Style? disabledSelected,
  10. Style? fileSize,
  11. Style? emptyDirectory,
})

Implementation

FilePickerStyles({
  Style? cursor,
  Style? symlink,
  Style? directory,
  Style? file,
  Style? permission,
  Style? selected,
  Style? disabledCursor,
  Style? disabledFile,
  Style? disabledSelected,
  Style? fileSize,
  Style? emptyDirectory,
}) : cursor = cursor ?? Style().foreground(AnsiColor(212)),
     symlink = symlink ?? Style().foreground(AnsiColor(36)),
     directory = directory ?? Style().foreground(AnsiColor(99)),
     file = file ?? Style(),
     permission = permission ?? Style().foreground(AnsiColor(244)),
     selected = selected ?? Style().bold().foreground(AnsiColor(212)),
     disabledCursor = disabledCursor ?? Style().foreground(AnsiColor(247)),
     disabledFile = disabledFile ?? Style().foreground(AnsiColor(243)),
     disabledSelected =
         disabledSelected ?? Style().foreground(AnsiColor(247)),
     fileSize = fileSize ?? Style().foreground(AnsiColor(240)).width(7),
     emptyDirectory =
         emptyDirectory ?? Style().foreground(AnsiColor(240)).italic();