ZetaButton constructor

const ZetaButton(
  1. {required String label,
  2. VoidCallback? onPressed,
  3. ZetaButtonType type = ZetaButtonType.primary,
  4. ZetaWidgetSize size = ZetaWidgetSize.medium,
  5. ZetaWidgetBorder borderType = ZetaWidgetBorder.rounded,
  6. IconData? leadingIcon,
  7. IconData? trailingIcon,
  8. Key? key}
)

Constructs ZetaButton

Implementation

const ZetaButton({
  required this.label,
  this.onPressed,
  this.type = ZetaButtonType.primary,
  this.size = ZetaWidgetSize.medium,
  this.borderType = ZetaWidgetBorder.rounded,
  this.leadingIcon,
  this.trailingIcon,
  super.key,
});