MinimalButtonGroupItem constructor

const MinimalButtonGroupItem({
  1. String? label,
  2. IconData? icon,
  3. VoidCallback? onPressed,
  4. String? semanticLabel,
  5. 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',
     );