Tag constructor

Tag({
  1. Key? key,
  2. required Widget child,
  3. required String text,
  4. TextStyle? textStyle,
  5. BoxDecoration? labelDecoration,
  6. Color? color,
  7. double tagHeight = 40,
  8. double tagWidth = 120,
  9. double cornerHeight = 10,
  10. double cornerWidth = 10,
  11. double spacing = 2,
  12. double rightPadding = 0,
  13. bool isVisible = true,
})

Implementation

Tag({
  Key? key,
  required this.child,
  required this.text,
  this.textStyle,
  this.labelDecoration,
  this.color,
  this.tagHeight = 40,
  this.tagWidth = 120,
  this.cornerHeight = 10,
  this.cornerWidth = 10,
  this.spacing = 2,
  this.rightPadding = 0,
  this.isVisible = true,
}) : super(key: key);