Tag constructor

const Tag({
  1. Key? key,
  2. required Widget child,
  3. TypeEnum type = TypeEnum.primary,
  4. bool closable = false,
  5. Color? color,
  6. SizeEnum size = SizeEnum.defaultSize,
  7. bool round = false,
  8. bool? checked,
  9. VoidCallback? onClose,
  10. 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
});