TKeyValueSection.flow constructor

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

Factory constructor for inline dynamic flow layout where Key: Value items wrap naturally based on width.

Implementation

factory TKeyValueSection.flow({
  Key? key,
  required List<TKeyValue> values,
  TKeyValueTheme? theme,
  double gap = 8,
  double hSpacing = 20,
  double vSpacing = 12,
  bool? removeEmpty,
}) {
  return TKeyValueSection(
    key: key,
    values: values,
    theme: theme,
    gridInline: true,
    columnar: false,
    inlineKeyGap: gap,
    gridHorizontalSpacing: hSpacing,
    gridVerticalSpacing: vSpacing,
    removeEmpty: removeEmpty,
  );
}