DraftModeUIButton constructor

const DraftModeUIButton({
  1. Key? key,
  2. required Widget child,
  3. Widget? pendingChild,
  4. bool isPending = false,
  5. VoidCallback? onPressed,
  6. DraftModeUIButtonSize size = DraftModeUIButtonSize.large,
  7. DraftModeUIButtonVariant variant = DraftModeUIButtonVariant.primary,
  8. Color? backgroundColor,
  9. Color? textColor,
  10. bool stretched = true,
  11. EdgeInsetsGeometry? padding,
  12. bool autoPending = false,
})

Implementation

const DraftModeUIButton({
  super.key,
  required this.child,
  this.pendingChild,
  this.isPending = false,
  this.onPressed,
  this.size = DraftModeUIButtonSize.large,
  this.variant = DraftModeUIButtonVariant.primary,
  this.backgroundColor,
  this.textColor,
  this.stretched = true,
  this.padding,
  this.autoPending = false,
});