FSelectItem<T>.item constructor
const
FSelectItem<T>.item ({
- required Widget title,
- required T value,
- FItemStyle style(
- FItemStyle style
- bool? enabled,
- Widget? prefix,
- Widget? subtitle,
- Widget? suffixBuilder(
- BuildContext context,
- bool selected
- 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>;