CrButton constructor
CrButton({})
Implementation
CrButton({
Key? key,
this.type = CrButtonType.normal,
this.size = CrButtonSize.normal,
this.plain = false,
this.loading = false,
this.disabled = false,
this.onlyText = false,
this.round = false,
this.text,
this.child,
this.icon,
this.rightIcon,
this.onTap = noop,
}) {
if (icon != null || rightIcon != null) {
if (icon != null && rightIcon != null) {
assert(true);
}
}
if (text != null || child != null) {
if (text != null && child != null) {
assert(true);
}
}
if (plain && type == CrButtonType.normal) {
assert(true);
}
}