Tag constructor
Tag({})
Implementation
Tag({
Key? key,
this.type: "default",
this.size: "default",
this.text: "",
this.plain: false,
this.round: false,
this.mark: false,
this.color,
this.textColor,
this.onClose,
}) : assert(["default", "medium", "large"].indexOf(size) > -1,
"size must be default, medium, or large"),
assert(
["default", "primary", "success", "danger", "warning"]
.indexOf(type) >
-1,
"type must be default, primary, success, danger or warning"),
super(key: key);