RawChip constructor

const RawChip(
  1. {Key? key,
  2. ChipThemeData? defaultProperties,
  3. Widget? avatar,
  4. required Widget label,
  5. TextStyle? labelStyle,
  6. EdgeInsetsGeometry? padding,
  7. VisualDensity? visualDensity,
  8. EdgeInsetsGeometry? labelPadding,
  9. Widget? deleteIcon,
  10. VoidCallback? onDeleted,
  11. Color? deleteIconColor,
  12. String? deleteButtonTooltipMessage,
  13. VoidCallback? onPressed,
  14. ValueChanged<bool>? onSelected,
  15. double? pressElevation,
  16. bool tapEnabled = true,
  17. bool selected = false,
  18. bool isEnabled = true,
  19. Color? disabledColor,
  20. Color? selectedColor,
  21. String? tooltip,
  22. BorderSide? side,
  23. OutlinedBorder? shape,
  24. Clip clipBehavior = Clip.none,
  25. FocusNode? focusNode,
  26. bool autofocus = false,
  27. MaterialStateProperty<Color?>? color,
  28. Color? backgroundColor,
  29. MaterialTapTargetSize? materialTapTargetSize,
  30. double? elevation,
  31. Color? shadowColor,
  32. Color? surfaceTintColor,
  33. IconThemeData? iconTheme,
  34. Color? selectedShadowColor,
  35. bool? showCheckmark,
  36. Color? checkmarkColor,
  37. ShapeBorder avatarBorder = const CircleBorder()}
)

Creates a RawChip.

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

The pressElevation and elevation must be null or non-negative. Typically, pressElevation is greater than elevation.

Implementation

const RawChip({
  super.key,
  this.defaultProperties,
  this.avatar,
  required this.label,
  this.labelStyle,
  this.padding,
  this.visualDensity,
  this.labelPadding,
  Widget? deleteIcon,
  this.onDeleted,
  this.deleteIconColor,
  this.deleteButtonTooltipMessage,
  this.onPressed,
  this.onSelected,
  this.pressElevation,
  this.tapEnabled = true,
  this.selected = false,
  this.isEnabled = true,
  this.disabledColor,
  this.selectedColor,
  this.tooltip,
  this.side,
  this.shape,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.autofocus = false,
  this.color,
  this.backgroundColor,
  this.materialTapTargetSize,
  this.elevation,
  this.shadowColor,
  this.surfaceTintColor,
  this.iconTheme,
  this.selectedShadowColor,
  this.showCheckmark,
  this.checkmarkColor,
  this.avatarBorder = const CircleBorder(),
}) : assert(pressElevation == null || pressElevation >= 0.0),
     assert(elevation == null || elevation >= 0.0),
     deleteIcon = deleteIcon ?? _kDefaultDeleteIcon;