Pullable.noBounce constructor

Pullable.noBounce({
  1. Key? key,
  2. required Widget child,
  3. Future<void> onRefresh()?,
  4. RefreshController? controller,
  5. PullableHeaderType headerType = PullableHeaderType.waterDrop,
})

No bounce constructor for reduced bouncing

Implementation

Pullable.noBounce({
  super.key,
  required this.child,
  this.onRefresh,
  this.controller,
  PullableHeaderType headerType = PullableHeaderType.waterDrop,
})  : config = PullableConfig(
        physics: ClampingScrollPhysics(),
        headerType: headerType,
      ),
      headerStyle = null,
      physics = const ClampingScrollPhysics();