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,
  super.triggerOffset = 60,
  super.clamping = false,
  super.position = IndicatorPosition.behind,
  super.processedDuration = Duration.zero,
  super.spring,
  super.readySpringBuilder,
  super.springRebound,
  FrictionFactor? frictionFactor,
  super.safeArea,
  super.infiniteOffset = 60,
  super.hitOver,
  super.infiniteHitOver,
  super.hapticFeedback,
  super.triggerWhenRelease,
  super.maxOverOffset,
  this.foregroundColor,
  this.userWaterDrop = false,
  this.backgroundColor,
  this.emptyWidget,
}) : super(
        frictionFactor: frictionFactor ??
            (userWaterDrop && infiniteOffset == null
                ? kCupertinoFrictionFactor
                : null),
        horizontalFrictionFactor: kCupertinoHorizontalFrictionFactor,
      );