Tag constructor
const
Tag({
- Key? key,
- required Widget child,
- TypeEnum type = TypeEnum.primary,
- bool closable = false,
- Color? color,
- SizeEnum size = SizeEnum.defaultSize,
- bool round = false,
- bool? checked,
- VoidCallback? onClose,
- EffectEnum effect = EffectEnum.light,
Implementation
const Tag({
super.key,
required this.child,
this.type = TypeEnum.primary,
this.closable = false,
this.color,
this.size = SizeEnum.defaultSize,
this.round = false,
this.checked,
this.onClose,
this.effect = EffectEnum.light, // 默认值为light
});