KinChip constructor

const KinChip({
  1. Key? key,
  2. String? label,
  3. Widget? child,
  4. bool isSelected = false,
  5. VoidCallback? onTap,
  6. Widget? leading,
  7. Widget? trailing,
  8. Color? selectedColor,
})

Implementation

const KinChip({
  super.key,
  this.label,
  this.child,
  this.isSelected = false,
  this.onTap,
  this.leading,
  this.trailing,
  this.selectedColor,
}) : assert(label != null || child != null, 'Provide either label or child');