VTableDensity enum
Enum to control the spacing and padding density of a VTable.
Affects row height, column spacing, and overall table padding to allow flexible table layouts that adapt to content and UI space constraints.
Values
- spacious → const VTableDensity
-
Maximum spacing - best for large screens and detailed data visualization
- comfortable → const VTableDensity
-
Balanced spacing - default choice for most use cases
- compact → const VTableDensity
-
Minimal spacing - suitable for dense data displays or limited screen space
Properties
- columnSpacing → double
-
Defines horizontal padding between columns based on the selected density level.
Values: spacious=8.0, comfortable=6.0, compact=4.0
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontalPadding → double
-
Defines horizontal padding for the entire table based on the selected density level.
Values: spacious=16.0, comfortable=12.0, compact=8.0
no setter
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- verticalPadding → double
-
Defines vertical padding for rows based on the selected density level.
Values: spacious=16.0, comfortable=12.0, compact=8.0
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
Constants
-
values
→ const List<
VTableDensity> - A constant List of the values in this enum, in order of their declaration.