MinimalButtonGroupItem constructor
const
MinimalButtonGroupItem({
- String? label,
- IconData? icon,
- VoidCallback? onPressed,
- String? semanticLabel,
- bool iconTrails = false,
A cell of a MinimalButtonGroup: a label, a glyph or both.
Implementation
const MinimalButtonGroupItem({
this.label,
this.icon,
this.onPressed,
this.semanticLabel,
this.iconTrails = false,
}) : assert(
label != null || (icon != null && semanticLabel != null),
'an action says its label, or shows a glyph and names it',
);