ChipThemeData constructor Null safety

const ChipThemeData(
  1. {required Color backgroundColor,
  2. Color? deleteIconColor,
  3. required Color disabledColor,
  4. required Color selectedColor,
  5. required Color secondarySelectedColor,
  6. Color? shadowColor,
  7. Color? selectedShadowColor,
  8. bool? showCheckmark,
  9. Color? checkmarkColor,
  10. EdgeInsetsGeometry? labelPadding,
  11. required EdgeInsetsGeometry padding,
  12. BorderSide? side,
  13. OutlinedBorder? shape,
  14. required TextStyle labelStyle,
  15. required TextStyle secondaryLabelStyle,
  16. required Brightness brightness,
  17. double? elevation,
  18. double? pressElevation}
)

Create a ChipThemeData given a set of exact values. All the values must be specified except for shadowColor, selectedShadowColor, elevation, and pressElevation, which may be null.

This will rarely be used directly. It is used by lerp to create intermediate themes based on two themes.

Implementation

const ChipThemeData({
  required this.backgroundColor,
  this.deleteIconColor,
  required this.disabledColor,
  required this.selectedColor,
  required this.secondarySelectedColor,
  this.shadowColor,
  this.selectedShadowColor,
  this.showCheckmark,
  this.checkmarkColor,
  this.labelPadding,
  required this.padding,
  this.side,
  this.shape,
  required this.labelStyle,
  required this.secondaryLabelStyle,
  required this.brightness,
  this.elevation,
  this.pressElevation,
}) : assert(backgroundColor != null),
     assert(disabledColor != null),
     assert(selectedColor != null),
     assert(secondarySelectedColor != null),
     assert(padding != null),
     assert(labelStyle != null),
     assert(secondaryLabelStyle != null),
     assert(brightness != null);