ChoiceChip constructor
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);