RawChip constructor

const RawChip({Key key, Widget avatar, @required Widget label, TextStyle labelStyle, EdgeInsetsGeometry padding, EdgeInsetsGeometry labelPadding, Widget deleteIcon, VoidCallback onDeleted, Color deleteIconColor, String deleteButtonTooltipMessage, VoidCallback onPressed, ValueChanged<bool> onSelected, double pressElevation: 8.0, bool tapEnabled: true, bool selected, bool showCheckmark: true, bool isEnabled: true, Color disabledColor, Color selectedColor, String tooltip, ShapeBorder shape, Clip clipBehavior: Clip.none, Color backgroundColor, MaterialTapTargetSize materialTapTargetSize })

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