SingleChoiceDialog<T> constructor

SingleChoiceDialog<T>({
  1. Key? key,
  2. required List<T> items,
  3. ValueChanged<T>? onSelected,
  4. Widget? title,
  5. EdgeInsetsGeometry? titlePadding,
  6. EdgeInsetsGeometry contentPadding = const EdgeInsets.fromLTRB(0.0, 12.0, 0.0, 16.0),
  7. String? semanticLabel,
  8. ItemBuilder<T>? itemBuilder,
  9. bool isDividerEnabled = false,
  10. 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);