whenOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>(
  1. {TResult? none(
      )?,
    1. TResult? underline(
        )?,
      1. TResult? overline(
          )?,
        1. TResult? lineThrough(
            )?}
          )
          @optionalTypeArgs, inherited

          Implementation

          @optionalTypeArgs
          TResult? whenOrNull<TResult extends Object?>({
            TResult? Function()? none,
            TResult? Function()? underline,
            TResult? Function()? overline,
            TResult? Function()? lineThrough,
          }) =>
              throw _privateConstructorUsedError;