when<TResult extends Object?> method Null safety

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

          Implementation

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