when<TResult extends Object?> method
Null safety
- TResult $default(
- ScrollPhysics? parent
- {required TResult rangeMaintaining(
- ScrollPhysics? parent
- required TResult bouncingScroll(
- ScrollDecelerationRate decelerationRate,
- ScrollPhysics? parent
- required TResult clamping(
- ScrollPhysics? parent
- required TResult alwaysScrollable(
- ScrollPhysics? parent
- required TResult neverScrollable(
- ScrollPhysics? parent
- required TResult pageScroll(
- ScrollPhysics? parent
- required TResult fixedExtent(
- ScrollPhysics? parent
@optionalTypeArgs, inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>(
TResult Function(ScrollPhysics? parent) $default, {
required TResult Function(ScrollPhysics? parent) rangeMaintaining,
required TResult Function(
ScrollDecelerationRate decelerationRate, ScrollPhysics? parent)
bouncingScroll,
required TResult Function(ScrollPhysics? parent) clamping,
required TResult Function(ScrollPhysics? parent) alwaysScrollable,
required TResult Function(ScrollPhysics? parent) neverScrollable,
required TResult Function(ScrollPhysics? parent) pageScroll,
required TResult Function(ScrollPhysics? parent) fixedExtent,
}) =>
throw _privateConstructorUsedError;