FSelectItem<T>.item constructor

const FSelectItem<T>.item({
  1. required Widget title,
  2. required T value,
  3. FItemStyle style(
    1. FItemStyle style
    )?,
  4. bool? enabled,
  5. Widget? prefix,
  6. Widget? subtitle,
  7. Widget? suffixBuilder(
    1. BuildContext context,
    2. bool selected
    ),
  8. Key? key,
})

Creates a FSelectItem with a custom title and value.

This is identical to FSelectItem.new. It provides consistency with other FSelectItemMixin members when using dot-shorthands.

Implementation

const factory FSelectItem.item({
  required Widget title,
  required T value,
  FItemStyle Function(FItemStyle style)? style,
  bool? enabled,
  Widget? prefix,
  Widget? subtitle,
  // ignore: avoid_positional_boolean_parameters
  Widget? Function(BuildContext context, bool selected) suffixBuilder,
  Key? key,
}) = FSelectItem<T>;