CustomRefresher constructor Null safety

CustomRefresher(
  1. {Key? key,
  2. required RefreshController controller,
  3. Widget? child,
  4. Widget? header,
  5. Widget? footer,
  6. bool enablePullDown = true,
  7. bool enablePullUp = false,
  8. bool enableTwoLevel = false,
  9. VoidCallback? onRefresh,
  10. VoidCallback? onLoading,
  11. OnTwoLevel? onTwoLevel,
  12. DragStartBehavior? dragStartBehavior,
  13. bool? primary,
  14. double? cacheExtent,
  15. int? semanticChildCount,
  16. bool? reverse,
  17. ScrollPhysics? physics,
  18. Axis? scrollDirection,
  19. ScrollController? scrollController}
)

Implementation

CustomRefresher({
  Key? key,
  required this.controller,
  this.child,
  this.header,
  this.footer,
  this.enablePullDown: true,
  this.enablePullUp: false,
  this.enableTwoLevel: false,
  this.onRefresh,
  this.onLoading,
  this.onTwoLevel,
  this.dragStartBehavior,
  this.primary,
  this.cacheExtent,
  this.semanticChildCount,
  this.reverse,
  this.physics,
  this.scrollDirection,
  this.scrollController,
})  : builder = null,
      super(key: key);