TKeyValueSection.columnsStacked constructor

TKeyValueSection.columnsStacked({
  1. Key? key,
  2. required List<TKeyValue> values,
  3. TKeyValueTheme? theme,
  4. int? columns,
  5. double gap = 4,
  6. double hSpacing = 20,
  7. double vSpacing = 14,
  8. bool? removeEmpty,
})

Factory constructor for stacked multi-column grid layout with uniform/proportional columns.

Implementation

factory TKeyValueSection.columnsStacked({
  Key? key,
  required List<TKeyValue> values,
  TKeyValueTheme? theme,
  int? columns,
  double gap = 4,
  double hSpacing = 20,
  double vSpacing = 14,
  bool? removeEmpty,
}) {
  return TKeyValueSection(
    key: key,
    values: values,
    theme: theme,
    gridInline: false,
    columnar: true,
    columns: columns,
    gridCellGap: gap,
    gridHorizontalSpacing: hSpacing,
    gridVerticalSpacing: vSpacing,
    removeEmpty: removeEmpty,
  );
}