FSelectSection<T> constructor

FSelectSection<T>({
  1. required Widget label,
  2. required Map<String, T> items,
  3. FSelectSectionStyle style(
    1. FSelectSectionStyle
    )?,
  4. bool? enabled,
  5. FItemDivider divider = FItemDivider.none,
  6. Key? key,
})

Creates a FSelectSection from the given items.

For more control over the items' appearances, use FSelectSection.rich.

Implementation

FSelectSection({
  required Widget label,
  required Map<String, T> items,
  FSelectSectionStyle Function(FSelectSectionStyle)? style,
  bool? enabled,
  FItemDivider divider = FItemDivider.none,
  Key? key,
}) : this.rich(
       label: label,
       children: [for (final e in items.entries) FSelectItem<T>(title: Text(e.key), value: e.value)],
       style: style,
       enabled: enabled,
       divider: divider,
       key: key,
     );