GestureAnimation.depth constructor
GestureAnimation.depth({
- AnimationBehavior behavior = AnimationBehavior.normal,
- Curve curve = Curves.easeOut,
- String? debugLabel = 'depth',
- Duration duration = const Duration(milliseconds: 300),
- Curve? reverseCurve,
- Duration? reverseDuration,
- double upperBound = 1.0,
- double lowerBound = 0.0,
- double value = 1.0,
- bool repeat = false,
- double depth = 0.0,
- double shadowBlur = 20.0,
- Color? shadowColor,
- Offset? shadowOffset,
- BorderRadius? shadowRadius,
- double shadowSpread = 0.0,
Implementation
GestureAnimation.depth({
this.behavior = AnimationBehavior.normal,
this.curve = Curves.easeOut,
this.debugLabel = 'depth',
this.duration = const Duration(milliseconds: 300),
this.reverseCurve,
this.reverseDuration,
this.upperBound = 1.0,
this.lowerBound = 0.0,
this.value = 1.0,
this.repeat = false,
double depth = 0.0,
double shadowBlur = 20.0,
Color? shadowColor,
Offset? shadowOffset,
BorderRadius? shadowRadius,
double shadowSpread = 0.0,
}) : _effect = GestureAnimations.depth,
begin = null,
end = null,
builder = null,
_data = _EffectData(
intensity: depth,
shadowBlur: shadowBlur,
shadowColor: shadowColor,
shadowRadius: shadowRadius,
shadowSpread: shadowSpread,
shadowOffset: shadowOffset ?? Offset.zero,
);