Chip constructor

const Chip({Key key, Widget avatar, @required Widget label, TextStyle labelStyle, EdgeInsetsGeometry labelPadding, Widget deleteIcon, VoidCallback onDeleted, Color deleteIconColor, String deleteButtonTooltipMessage, ShapeBorder shape, Clip clipBehavior: Clip.none, Color backgroundColor, EdgeInsetsGeometry padding, MaterialTapTargetSize materialTapTargetSize })

Creates a material design chip.

The label and clipBehavior arguments must not be null.

Implementation

const Chip({
  Key key,
  this.avatar,
  @required this.label,
  this.labelStyle,
  this.labelPadding,
  this.deleteIcon,
  this.onDeleted,
  this.deleteIconColor,
  this.deleteButtonTooltipMessage,
  this.shape,
  this.clipBehavior = Clip.none,
  this.backgroundColor,
  this.padding,
  this.materialTapTargetSize,
})  : assert(label != null),
      assert(clipBehavior != null),
      super(key: key);