section<T> static method
FAutocompleteSection<T>
section<T>({
- required Widget label,
- required List<
T> items, - FAutocompleteSectionStyleDelta style = const .context(),
- bool? enabled,
- FItemDivider divider = .none,
- 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);