What do situational irony and dramatic irony have in common?

They both are generally revealed through the private thoughts of a character.

They both are told through elements of flashback to previous times.

They both usually unfold slowly in a story as details emerge and events occur.

They both are often found in the dialogue between the characters.

They both usually involve a contrast between what is expected or intended and what actually happens.

They both usually unfold slowly in a story as details emerge and events occur.

Yes, that's correct. Both situational irony and dramatic irony often develop gradually throughout a story, with new details and events adding to the irony and building suspense for the reader or audience.