RawChip constructor
Creates a RawChip
The onPressed
and onSelected
callbacks must not both be specified at
the same time.
The label
, isEnabled
, and clipBehavior
arguments must not be null.
Implementation
const RawChip({
Key key,
this.avatar,
@required this.label,
this.labelStyle,
this.padding,
this.labelPadding,
Widget deleteIcon,
this.onDeleted,
this.deleteIconColor,
this.deleteButtonTooltipMessage,
this.onPressed,
this.onSelected,
this.pressElevation = 8.0,
this.tapEnabled = true,
this.selected,
this.showCheckmark = true,
this.isEnabled = true,
this.disabledColor,
this.selectedColor,
this.tooltip,
this.shape,
this.clipBehavior = Clip.none,
this.backgroundColor,
this.materialTapTargetSize,
}) : assert(label != null),
assert(isEnabled != null),
assert(clipBehavior != null),
deleteIcon = deleteIcon ?? _kDefaultDeleteIcon,
super(key: key);