SelectComponentSizing.fit constructor
const
SelectComponentSizing.fit({
- int? maxDescriptionHeight,
Creates a configuration that fits the current terminal height
(stdout.terminalLines - 2, or 10 if unavailable).
If maxDescriptionHeight is omitted, it defaults to totalHeight ~/ 2.
Implementation
const factory SelectComponentSizing.fit({int? maxDescriptionHeight}) =
_FitSizing;