ZdsTag constructor

const ZdsTag(
  1. {Key? key,
  2. bool rounded = false,
  3. bool rectangular = false,
  4. bool filled = false,
  5. Widget? prefix,
  6. ZdsTagColor color = ZdsTagColor.basic,
  7. Color? customColor,
  8. Widget? child,
  9. VoidCallback? onClose,
  10. bool unrestrictedSize = false,
  11. Color? customBackgroundColor}
)

Tag item that can have a close/remove button.

When unrestrictedSize is true, the tag will size itself to its child's size. This is useful for bigger fonts or non-text children like images and such.

Implementation

const ZdsTag