WeButton constructor
WeButton(
- dynamic child, {
- WeButtonSize size = WeButtonSize.acquiescent,
- Function? onClick,
- bool hollow = false,
- WeButtonType theme = WeButtonType.acquiescent,
- bool disabled = false,
- bool loading = false,
Implementation
WeButton(
this.child, {
WeButtonSize size = WeButtonSize.acquiescent,
this.onClick,
this.hollow = false,
this.theme = WeButtonType.acquiescent,
this.disabled = false,
this.loading = false,
}) : this.size = _sizeConfig[size.index],
this.sizeType = size;