We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b65e0 commit 4792297Copy full SHA for 4792297
packages/flutter/lib/src/widgets/scroll_physics.dart
@@ -67,6 +67,11 @@ enum ScrollDecelerationRate {
67
/// // ...
68
/// final ScrollPhysics mergedPhysics = physics.applyTo(const AlwaysScrollableScrollPhysics());
69
/// ```
70
+///
71
+/// When implementing a subclass, you must override [applyTo] so that it returns
72
+/// an appropriate instance of your subclass. Otherwise, classes like
73
+/// [Scrollable] that inform a [ScrollPosition] will combine them with
74
+/// the default [ScrollPhysics] object instead of your custom subclass.
75
@immutable
76
class ScrollPhysics {
77
/// Creates an object with the default scroll physics.
0 commit comments