ActionChip constructor

const ActionChip({Key key, Widget avatar, @required Widget label, TextStyle labelStyle, EdgeInsetsGeometry labelPadding, @required VoidCallback onPressed, double pressElevation: 8.0, String tooltip, ShapeBorder shape, Clip clipBehavior: Clip.none, Color backgroundColor, EdgeInsetsGeometry padding, MaterialTapTargetSize materialTapTargetSize })

Create a chip that acts like a button.

The label, onPressed, and clipBehavior arguments must not be null.

Implementation

const ActionChip({
  Key key,
  this.avatar,
  @required this.label,
  this.labelStyle,
  this.labelPadding,
  @required this.onPressed,
  this.pressElevation = 8.0,
  this.tooltip,
  this.shape,
  this.clipBehavior = Clip.none,
  this.backgroundColor,
  this.padding,
  this.materialTapTargetSize,
})  : assert(label != null),
      assert(
        onPressed != null,
        'Rather than disabling an ActionChip by setting onPressed to null, '
        'remove it from the interface entirely.',
      ),
      super(key: key);