YButton constructor
YButton({
- required Widget child,
- required dynamic onTap(),
- dynamic onDoubleTap()?,
- dynamic onLongPress()?,
- double? width,
- double? height,
- Color? color,
- Decoration? decoration,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- bool enable = true,
- bool isInk = false,
- bool isAnim = true,
- int? tapTime,
- 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,
});