ChoiceChip constructor

const ChoiceChip({Key key, Widget avatar, @required Widget label, TextStyle labelStyle, EdgeInsetsGeometry labelPadding, ValueChanged<bool> onSelected, double pressElevation: 8.0, @required bool selected, Color selectedColor, Color disabledColor, String tooltip, ShapeBorder shape, Clip clipBehavior: Clip.none, Color backgroundColor, EdgeInsetsGeometry padding, MaterialTapTargetSize materialTapTargetSize })

Create a chip that acts like a radio button.

The label, selected, and clipBehavior attributes must not be null.

Implementation

const ChoiceChip({
  Key key,
  this.avatar,
  @required this.label,
  this.labelStyle,
  this.labelPadding,
  this.onSelected,
  this.pressElevation = 8.0,
  @required this.selected,
  this.selectedColor,
  this.disabledColor,
  this.tooltip,
  this.shape,
  this.clipBehavior = Clip.none,
  this.backgroundColor,
  this.padding,
  this.materialTapTargetSize,
})  : assert(selected != null),
      assert(label != null),
      assert(clipBehavior != null),
      super(key: key);