whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. {TResult? value(
    1. String value
    )?,
  2. TResult? unique(
      )?}
    )
    @optionalTypeArgs, inherited

    Implementation

    @optionalTypeArgs
    TResult? whenOrNull<TResult extends Object?>({
      TResult? Function(String value)? value,
      TResult? Function()? unique,
    }) =>
        throw _privateConstructorUsedError;