Tag constructor

const Tag(
  1. String text, {
  2. Key? key,
  3. EdgeInsets? padding,
  4. Color? color = Colors.black,
  5. Color? backgroundColor,
  6. BorderRadius? borderRadius,
  7. double? fontSize,
  8. FontWeight? fontWeight,
  9. bool close = false,
  10. VoidCallback? onClose,
  11. Border? border,
})

Implementation

const Tag(
  this.text, {
  Key? key,
  this.padding,
  this.color = Colors.black,
  this.backgroundColor,
  this.borderRadius,
  this.fontSize,
  this.fontWeight,
  this.close = false,
  this.onClose,
  this.border,
}) : super(key: key);