BaseChip constructor
const
BaseChip({
- Key? key,
- required String label,
- ChipStyle? style,
- SdChipThemeData? theme,
- Widget? leading,
- Widget? trailing,
- bool? selected,
- bool initialSelected = false,
- bool enabled = true,
- bool toggleable = true,
- VoidCallback? onTap,
- ValueChanged<
bool> ? onSelected, - Duration? duration,
- Curve? curve,
- double? pressedScale,
- String? semanticsLabel,
- String? tooltip,
- int maxLines = 1,
- 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,
});