ActionChip constructor

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

Create a chip that acts like a button.

The label, onPressed, autofocus, and clipBehavior arguments must not be null. The pressElevation and elevation must be null or non-negative. Typically, pressElevation is greater than elevation.

Implementation

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