whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. ScrollPhysics? parent
    )?,
  2. {TResult? rangeMaintaining(
    1. ScrollPhysics? parent
    )?,
  3. TResult? bouncingScroll(
    1. ScrollDecelerationRate decelerationRate,
    2. ScrollPhysics? parent
    )?,
  4. TResult? clamping(
    1. ScrollPhysics? parent
    )?,
  5. TResult? alwaysScrollable(
    1. ScrollPhysics? parent
    )?,
  6. TResult? neverScrollable(
    1. ScrollPhysics? parent
    )?,
  7. TResult? pageScroll(
    1. ScrollPhysics? parent
    )?,
  8. TResult? fixedExtent(
    1. ScrollPhysics? parent
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  TResult? Function(ScrollPhysics? parent)? $default, {
  TResult? Function(ScrollPhysics? parent)? rangeMaintaining,
  TResult? Function(
          ScrollDecelerationRate decelerationRate, ScrollPhysics? parent)?
      bouncingScroll,
  TResult? Function(ScrollPhysics? parent)? clamping,
  TResult? Function(ScrollPhysics? parent)? alwaysScrollable,
  TResult? Function(ScrollPhysics? parent)? neverScrollable,
  TResult? Function(ScrollPhysics? parent)? pageScroll,
  TResult? Function(ScrollPhysics? parent)? fixedExtent,
}) =>
    throw _privateConstructorUsedError;