ButtonWrapper constructor

const ButtonWrapper({
  1. Key? key,
  2. VoidCallback? onTap,
  3. VoidCallback? onLongPress,
  4. required Widget? child,
  5. double? width,
  6. double? height,
  7. Color? backgroundColor,
  8. double borderRadius = 10,
  9. BoxDecoration? decoration,
  10. EdgeInsets? padding,
  11. bool splash = true,
  12. EdgeInsets? margin,
  13. Alignment? alignment,
  14. Clip? clipBehavior,
  15. bool active = true,
  16. Color? inactiveColor,
  17. Border? border,
  18. VoidCallback? onDoubleTapped,
  19. Color? hoverColor,
  20. Color? focusedColor,
  21. double? opacity,
  22. bool minimumSpace = false,
})

Implementation

const ButtonWrapper({
  Key? key,
  this.onTap,
  this.onLongPress,
  required this.child,
  this.width,
  this.height,
  this.backgroundColor,
  this.borderRadius = 10,
  this.decoration,
  this.padding,
  this.splash = true,
  this.margin,
  this.alignment,
  this.clipBehavior,
  this.active = true,
  this.inactiveColor,
  this.border,
  this.onDoubleTapped,
  this.hoverColor,
  this.focusedColor,
  this.opacity,
  this.minimumSpace = false,
}) : super(key: key);