section<T> static method
FSelectSection<T>
section<T>({
- required Widget label,
- required Map<
String, T> items, - FSelectSectionStyle style(
- FSelectSectionStyle style
- bool? enabled,
- FItemDivider divider = .none,
- Key? key,
Creates a FSelectSection from the given items.
For more control over the items' appearances, use FSelectSection.rich.
For more control over the items' appearances, use richSection.
This function is a shorthand for FSelectSection.new.
Implementation
static FSelectSection<T> section<T>({
required Widget label,
required Map<String, T> items,
FSelectSectionStyle Function(FSelectSectionStyle style)? style,
bool? enabled,
FItemDivider divider = .none,
Key? key,
}) => .new(label: label, items: items, style: style, enabled: enabled, divider: divider, key: key);