ZetaButton constructor

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

Constructs ZetaButton

Implementation

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