ZdsButton.muted constructor

const ZdsButton.muted(
  1. {required Widget child,
  2. Key? key,
  3. VoidCallback? onTap,
  4. bool autofocus = false,
  5. Clip clipBehavior = Clip.none,
  6. FocusNode? focusNode,
  7. VoidCallback? onLongPress,
  8. ValueChanged<bool>? onHover,
  9. ValueChanged<bool>? onFocusChange,
  10. EdgeInsets? textPadding,
  11. Color? customColor,
  12. String? semanticLabel}
)

Constructs a muted ZdsButton. (Quaternary button)

The child argument must not be null.

Implementation

const ZdsButton.muted({
  required this.child,
  super.key,
  this.onTap,
  this.autofocus = false,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.onLongPress,
  this.onHover,
  this.onFocusChange,
  this.textPadding,
  this.customColor,
  this.semanticLabel,
})  : _variant = ZdsButtonVariant.muted,
      isOnDarkBackground = false,
      isDangerButton = false;