Controls the vertical sizing of a selection dialog.
Use the SelectComponentSizing.fixed and SelectComponentSizing.fit constructors to create instances.
This class is final so that it can be more easily evolved in the future.
Constructors
- SelectComponentSizing.fit({int? maxDescriptionHeight})
-
Creates a configuration that fits the current terminal height
(
stdout.terminalLines - 2, or10if unavailable).constfactory - SelectComponentSizing.fixed({int totalHeight, int maxDescriptionHeight})
-
Creates a fixed-size configuration with a constant
totalHeightandmaxDescriptionHeight.constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxDescriptionHeight → int
-
The maximum number of lines displayed for a hovered option's description
before it is truncated with an ellipsis.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalHeight → int
-
The maximum total number of lines (items, the hovered item's description
lines, and the bottom legend in multi-select mode) visible in the dialog
at once.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited