Bounce constructor
const
Bounce({
- Key? key,
- required Widget child,
- dynamic onTap()?,
- dynamic onTapUp()?,
- dynamic onSecondaryTapUp()?,
- dynamic onLongPress()?,
- HitTestBehavior behavior = HitTestBehavior.deferToChild,
- Duration duration = _defaultDuration,
- Duration tapDelay = _defaultTapDelay,
- Duration longPressDuration = _defaultLongPressDuration,
- bool scale = true,
- double scaleFactor = 0.95,
- bool tilt = true,
- double tiltAngle = pi / 10,
- FilterQuality? filterQuality = FilterQuality.high,
- MouseCursor? cursor,
Implementation
const Bounce(
{Key? key,
required this.child,
this.onTap,
this.onTapUp,
this.onSecondaryTapUp,
this.onLongPress,
this.behavior = HitTestBehavior.deferToChild,
this.duration = _defaultDuration,
this.tapDelay = _defaultTapDelay,
this.longPressDuration = _defaultLongPressDuration,
this.scale = true,
this.scaleFactor = 0.95,
this.tilt = true,
this.tiltAngle = pi / 10,
this.filterQuality = FilterQuality.high,
this.cursor})
: super(key: key);