createScrollPhysics function
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);
}
}