section<T> static method

FAutocompleteSection<T> section<T>({
  1. required Widget label,
  2. required List<T> items,
  3. FAutocompleteSectionStyleDelta style = const .context(),
  4. bool? enabled,
  5. FItemDivider divider = .none,
  6. Key? key,
})

Creates a FAutocompleteSection from the given items.

For more control over the appearance of individual items, use richSection.

This function is a shorthand for FAutocompleteSection.new.

Implementation

static FAutocompleteSection<T> section<T>({
  required Widget label,
  required List<T> items,
  FAutocompleteSectionStyleDelta style = const .context(),
  bool? enabled,
  FItemDivider divider = .none,
  Key? key,
}) => .new(label: label, items: items, style: style, enabled: enabled, divider: divider, key: key);