maybeWhen<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  9. required TResult orElse(
      )}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult maybeWhen<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,
      required TResult orElse(),
    }) =>
        throw _privateConstructorUsedError;