createScrollPhysics function

ScrollPhysics createScrollPhysics({
  1. ScrollPhysics? parent,
})

Implementation

ScrollPhysics createScrollPhysics({ScrollPhysics? parent}) {
  if (Platform.isIOS || Platform.isMacOS) {
    return BouncingScrollPhysics(parent: parent);
  } else {
    // The default scroll physics for platforms otherwise iOS/macOS.
    return ClampingScrollPhysics(parent: parent);
  }
}