section<T> static method

FSelectSection<T> section<T>({
  1. required Widget label,
  2. required Map<String, T> items,
  3. FSelectSectionStyle style(
    1. FSelectSectionStyle style
    )?,
  4. bool? enabled,
  5. FItemDivider divider = .none,
  6. 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);