ListRefreshStrategy<T> constructor

ListRefreshStrategy<T>({
  1. ScrollController? scrollController,
  2. bool? primary,
  3. ScrollPhysics? physics,
  4. bool shrinkWrap = false,
  5. EdgeInsetsGeometry? padding,
  6. double? itemExtent,
  7. Widget? prototypeItem,
  8. double? scrollCacheExtent,
  9. @Deprecated('Use scrollCacheExtent instead.') double? cacheExtent,
  10. int? semanticChildCount,
  11. String? restorationId,
  12. Clip clipBehavior = Clip.hardEdge,
  13. Widget loadingBuilder(
    1. BuildContext
    )?,
  14. Widget errorBuilder(
    1. BuildContext
    )?,
  15. Widget emptyBuilder(
    1. BuildContext
    )?,
})

Implementation

ListRefreshStrategy({
  this.scrollController,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  this.itemExtent,
  this.prototypeItem,
  this.scrollCacheExtent,
  @Deprecated('Use scrollCacheExtent instead.') double? cacheExtent,
  this.semanticChildCount,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
  this.loadingBuilder,
  this.errorBuilder,
  this.emptyBuilder,
}) : _legacyCacheExtent = cacheExtent;