YButton constructor

YButton({
  1. required Widget child,
  2. required dynamic onTap(),
  3. dynamic onDoubleTap()?,
  4. dynamic onLongPress()?,
  5. double? width,
  6. double? height,
  7. Color? color,
  8. Decoration? decoration,
  9. EdgeInsetsGeometry? padding,
  10. EdgeInsetsGeometry? margin,
  11. bool enable = true,
  12. bool isInk = false,
  13. bool isAnim = true,
  14. int? tapTime,
  15. BorderRadius borderRadius = BorderRadius.zero,
})

Implementation

YButton({
  required this.child,
  required this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.width,
  this.height,
  this.color,
  this.decoration,
  this.padding,
  this.margin,
  this.enable = true,
  this.isInk = false,
  this.isAnim = true,
  this.tapTime,
  this.borderRadius = BorderRadius.zero,
});