GestureAnimation.depth constructor

GestureAnimation.depth({
  1. AnimationBehavior behavior = AnimationBehavior.normal,
  2. Curve curve = Curves.easeOut,
  3. String? debugLabel = 'depth',
  4. Duration duration = const Duration(milliseconds: 300),
  5. Curve? reverseCurve,
  6. Duration? reverseDuration,
  7. double upperBound = 1.0,
  8. double lowerBound = 0.0,
  9. double value = 1.0,
  10. bool repeat = false,
  11. double depth = 0.0,
  12. double shadowBlur = 20.0,
  13. Color? shadowColor,
  14. Offset? shadowOffset,
  15. BorderRadius? shadowRadius,
  16. 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,
      );