SingleChoiceDialog<T> constructor
SingleChoiceDialog<T> ({
- Key? key,
- required List<
T> items, - ValueChanged<
T> ? onSelected, - Widget? title,
- EdgeInsetsGeometry? titlePadding,
- EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
- String? semanticLabel,
- ItemBuilder<
T> ? itemBuilder, - bool isDividerEnabled = false,
- Widget divider = const Divider(height: 0.0),
Implementation
SingleChoiceDialog(
{Key? key,
required this.items,
this.onSelected,
this.title,
this.titlePadding,
this.contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
this.semanticLabel,
this.itemBuilder,
this.isDividerEnabled = false,
this.divider = const Divider(
height: 0.0,
)})
: super(key: key);