whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. TResult? $default(
    1. Color color,
    2. Offset offset,
    3. double blurRadius
    )?,
  2. {TResult? box(
    1. Color color,
    2. Offset offset,
    3. double blurRadius,
    4. double spreadRadius,
    5. BlurStyle blurStyle
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  TResult? Function(Color color, Offset offset, double blurRadius)?
      $default, {
  TResult? Function(Color color, Offset offset, double blurRadius,
          double spreadRadius, BlurStyle blurStyle)?
      box,
}) =>
    throw _privateConstructorUsedError;