when<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult when<TResult extends Object?>(
  1. TResult $default(
    1. ScrollPhysics? parent
    ),
  2. {required TResult rangeMaintaining(
    1. ScrollPhysics? parent
    ),
  3. required TResult bouncingScroll(
    1. ScrollDecelerationRate decelerationRate,
    2. ScrollPhysics? parent
    ),
  4. required TResult clamping(
    1. ScrollPhysics? parent
    ),
  5. required TResult alwaysScrollable(
    1. ScrollPhysics? parent
    ),
  6. required TResult neverScrollable(
    1. ScrollPhysics? parent
    ),
  7. required TResult pageScroll(
    1. ScrollPhysics? parent
    ),
  8. required TResult fixedExtent(
    1. 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;