mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. _ScrollPhysics value
    )?,
  2. {TResult? rangeMaintaining(
    1. RangeMaintainingScrollPhysics value
    )?,
  3. TResult? bouncingScroll(
    1. BouncingScrollScrollPhysics value
    )?,
  4. TResult? clamping(
    1. ClampingScrollPhysics value
    )?,
  5. TResult? alwaysScrollable(
    1. AlwaysScrollableScrollPhysics value
    )?,
  6. TResult? neverScrollable(
    1. NeverScrollableScrollPhysics value
    )?,
  7. TResult? pageScroll(
    1. PageScrollPhysics value
    )?,
  8. TResult? fixedExtent(
    1. FixedExtentScrollPhysics value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  TResult? Function(_ScrollPhysics value)? $default, {
  TResult? Function(RangeMaintainingScrollPhysics value)? rangeMaintaining,
  TResult? Function(BouncingScrollScrollPhysics value)? bouncingScroll,
  TResult? Function(ClampingScrollPhysics value)? clamping,
  TResult? Function(AlwaysScrollableScrollPhysics value)? alwaysScrollable,
  TResult? Function(NeverScrollableScrollPhysics value)? neverScrollable,
  TResult? Function(PageScrollPhysics value)? pageScroll,
  TResult? Function(FixedExtentScrollPhysics value)? fixedExtent,
}) =>
    throw _privateConstructorUsedError;