Sarcasm

From ActuallyAutistic Wiki

Sarcasm is an exaggerated tone of voice. It's used to imply irony, that you actually believe the opposite of what you are saying.

If you say something ironically without using a sarcastic tone of voice, this is known as a dry sense of humor.