In both examples the words "sweet" and "plain" reverse their positive meaning into the negative one due to the context, micro- in the first, macro- in the second case.
In the stylistic device of irony it is always possible to indicate the exact word whose contextual meaning diametrically opposes its dictionary meaning. This is why this type of irony is called verbal irony. There are very many cases, though,