CupertinoFooter constructor

const CupertinoFooter({
  1. Key? key,
  2. double triggerOffset = 60,
  3. bool clamping = false,
  4. IndicatorPosition position = IndicatorPosition.behind,
  5. Duration processedDuration = Duration.zero,
  6. SpringDescription? spring,
  7. SpringBuilder? readySpringBuilder,
  8. bool springRebound = true,
  9. FrictionFactor? frictionFactor,
  10. bool safeArea = true,
  11. double? infiniteOffset = 60,
  12. bool? hitOver,
  13. bool? infiniteHitOver,
  14. bool hapticFeedback = false,
  15. bool triggerWhenRelease = false,
  16. double maxOverOffset = double.infinity,
  17. Color? foregroundColor,
  18. bool userWaterDrop = false,
  19. Color? backgroundColor,
  20. Widget? emptyWidget,
})

Implementation

const CupertinoFooter({
  this.key,
  double triggerOffset = 60,
  bool clamping = false,
  IndicatorPosition position = IndicatorPosition.behind,
  Duration processedDuration = Duration.zero,
  physics.SpringDescription? spring,
  SpringBuilder? readySpringBuilder,
  bool springRebound = true,
  FrictionFactor? frictionFactor,
  bool safeArea = true,
  double? infiniteOffset = 60,
  bool? hitOver,
  bool? infiniteHitOver,
  bool hapticFeedback = false,
  bool triggerWhenRelease = false,
  double maxOverOffset = double.infinity,
  this.foregroundColor,
  this.userWaterDrop = false,
  this.backgroundColor,
  this.emptyWidget,
}) : super(
        triggerOffset: triggerOffset,
        clamping: clamping,
        processedDuration: processedDuration,
        spring: spring,
        readySpringBuilder: readySpringBuilder,
        springRebound: springRebound,
        frictionFactor: frictionFactor ??
            (userWaterDrop && infiniteOffset == null
                ? kCupertinoFrictionFactor
                : null),
        horizontalFrictionFactor: kCupertinoHorizontalFrictionFactor,
        safeArea: safeArea,
        infiniteOffset: infiniteOffset,
        hitOver: hitOver,
        infiniteHitOver: infiniteHitOver,
        position: position,
        hapticFeedback: hapticFeedback,
        triggerWhenRelease: triggerWhenRelease,
        maxOverOffset: maxOverOffset,
      );