BaseChip constructor

const BaseChip({
  1. Key? key,
  2. required String label,
  3. ChipStyle? style,
  4. SdChipThemeData? theme,
  5. Widget? leading,
  6. Widget? trailing,
  7. bool? selected,
  8. bool initialSelected = false,
  9. bool enabled = true,
  10. bool toggleable = true,
  11. VoidCallback? onTap,
  12. ValueChanged<bool>? onSelected,
  13. Duration? duration,
  14. Curve? curve,
  15. double? pressedScale,
  16. String? semanticsLabel,
  17. String? tooltip,
  18. int maxLines = 1,
  19. TextOverflow overflow = TextOverflow.ellipsis,
})

Creates a reusable animated chip.

Implementation

const BaseChip({
  super.key,
  required this.label,
  this.style,
  this.theme,
  this.leading,
  this.trailing,
  this.selected,
  this.initialSelected = false,
  this.enabled = true,
  this.toggleable = true,
  this.onTap,
  this.onSelected,
  this.duration,
  this.curve,
  this.pressedScale,
  this.semanticsLabel,
  this.tooltip,
  this.maxLines = 1,
  this.overflow = TextOverflow.ellipsis,
});