WeButton constructor

WeButton(
  1. dynamic child, {
  2. WeButtonSize size = WeButtonSize.acquiescent,
  3. Function? onClick,
  4. bool hollow = false,
  5. WeButtonType theme = WeButtonType.acquiescent,
  6. bool disabled = false,
  7. 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;