when<TResult extends Object?> method Null safety

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

Implementation

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