RefreshConfiguration constructor

RefreshConfiguration({
  1. Key? key,
  2. required Widget child,
  3. IndicatorBuilder? headerBuilder,
  4. IndicatorBuilder? footerBuilder,
  5. double dragSpeedRatio = 1.0,
  6. ShouldFollowContent? shouldFooterFollowWhenNotFull,
  7. bool enableScrollWhenTwoLevel = true,
  8. bool enableLoadingWhenNoData = false,
  9. bool enableBallisticRefresh = false,
  10. SpringDescription springDescription = const SpringDescription(mass: 2.2, stiffness: 150, damping: 16),
  11. bool enableScrollWhenRefreshCompleted = false,
  12. bool enableLoadingWhenFailed = true,
  13. double twiceTriggerDistance = 150.0,
  14. double closeTwoLevelDistance = 80.0,
  15. bool skipCanRefresh = false,
  16. double? maxOverScrollExtent,
  17. bool enableBallisticLoad = true,
  18. double? maxUnderScrollExtent,
  19. double headerTriggerDistance = 80.0,
  20. double footerTriggerDistance = 15.0,
  21. bool hideFooterWhenNotFull = false,
  22. bool enableRefreshVibrate = false,
  23. bool enableLoadMoreVibrate = false,
  24. double? topHitBoundary,
  25. double? bottomHitBoundary,
})

Implementation

RefreshConfiguration(
    {Key? key,
    required this.child,
    this.headerBuilder,
    this.footerBuilder,
    this.dragSpeedRatio = 1.0,
    this.shouldFooterFollowWhenNotFull,
    this.enableScrollWhenTwoLevel = true,
    this.enableLoadingWhenNoData = false,
    this.enableBallisticRefresh = false,
    this.springDescription = const SpringDescription(
      mass: 2.2,
      stiffness: 150,
      damping: 16,
    ),
    this.enableScrollWhenRefreshCompleted = false,
    this.enableLoadingWhenFailed = true,
    this.twiceTriggerDistance = 150.0,
    this.closeTwoLevelDistance = 80.0,
    this.skipCanRefresh = false,
    this.maxOverScrollExtent,
    this.enableBallisticLoad = true,
    this.maxUnderScrollExtent,
    this.headerTriggerDistance = 80.0,
    this.footerTriggerDistance = 15.0,
    this.hideFooterWhenNotFull = false,
    this.enableRefreshVibrate = false,
    this.enableLoadMoreVibrate = false,
    this.topHitBoundary,
    this.bottomHitBoundary})
    : assert(headerTriggerDistance > 0),
      assert(twiceTriggerDistance > 0),
      assert(closeTwoLevelDistance > 0),
      assert(dragSpeedRatio > 0),
      super(key: key, child: child);