maybeWhen<TResult extends Object?> method Null safety

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

    Implementation

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