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. bool autoLoad = true,
  17. double? maxOverScrollExtent,
  18. bool enableBallisticLoad = true,
  19. double? maxUnderScrollExtent,
  20. double headerTriggerDistance = 80.0,
  21. double footerTriggerDistance = 15.0,
  22. bool hideFooterWhenNotFull = false,
  23. bool enableRefreshVibrate = false,
  24. bool enableLoadMoreVibrate = false,
  25. double? topHitBoundary,
  26. 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.autoLoad = true,
    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);