TKeyValueSection.flow constructor

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

Factory constructor for inline flow layout (Key: Value inline, dynamically wrapping based on content width).

Implementation

factory TKeyValueSection.flow({
  Key? key,
  required List<TKeyValue> values,
  TKeyValueTheme? theme,
  double? gap,
  double? hSpacing,
  double? vSpacing,
  bool? removeEmpty,
}) {
  return TKeyValueSection(
    key: key,
    values: values,
    theme: theme,
    mode: TKeyValueMode.inlineFlow,
    gap: gap,
    hSpacing: hSpacing,
    vSpacing: vSpacing,
    removeEmpty: removeEmpty,
  );
}