ZwapButtonChild.textWithCustomIcon constructor

ZwapButtonChild.textWithCustomIcon({
  1. required String text,
  2. required Widget icon(
    1. ZwapButtonStatusDescription
    ),
  3. double spaceBetween = 5,
  4. int fontSize = 14,
  5. FontWeight fontWeight = FontWeight.w400,
  6. ZwapButtonIconPosition iconPosition = ZwapButtonIconPosition.left,
})

Implementation

ZwapButtonChild.textWithCustomIcon({
  required String text,
  required Widget Function(ZwapButtonStatusDescription) icon,
  this.spaceBetween = 5,
  this.fontSize = 14,
  this.fontWeight = FontWeight.w400,
  this.iconPosition = ZwapButtonIconPosition.left,
})  : this.text = text,
      this._customIcon = icon,
      this.iconSize = 24,
      this.icon = null;