InputChip constructor

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

Creates an InputChip.

The onPressed and onSelected callbacks must not both be specified at the same time.

The label, isEnabled, selected, and clipBehavior arguments must not be null.

Implementation

const InputChip({
  Key key,
  this.avatar,
  @required this.label,
  this.labelStyle,
  this.labelPadding,
  this.selected = false,
  this.isEnabled = true,
  this.onSelected,
  this.deleteIcon,
  this.onDeleted,
  this.deleteIconColor,
  this.deleteButtonTooltipMessage,
  this.onPressed,
  this.pressElevation = 8.0,
  this.disabledColor,
  this.selectedColor,
  this.tooltip,
  this.shape,
  this.clipBehavior = Clip.none,
  this.backgroundColor,
  this.padding,
  this.materialTapTargetSize,
})  : assert(selected != null),
      assert(isEnabled != null),
      assert(label != null),
      assert(clipBehavior != null),
      super(key: key);