Ben Affleck to return as Batman in 'The Flash' and fans are hyped.

The director of The Flash has confirmed that Ben Affleck will appear in the film as Batman. Andy Muschietti has revealed that the Argo director-actor will return as the Dark Knight in the upcoming film, which will incorporate parallel universes and different versions of the character. The director also confirmed to Vanity Fair that Ben will play a key part in the story of the film, which is due out in 2022.

“He’s a very substantial part of the emotional impact of the movie. The interaction and relationship between Barry and Affleck's Wayne will bring an emotional level that we haven’t seen before."

READ ALSO: Ben Affleck and Jennifer Garner confirm divorce after 10 years of marriage

However, the Muschietti reiterated that this is very much a film focused on Ezra Miller's hero, The Flash/Barry Allen, but that the two heroes share a vital connection.

"They both lost their mothers to murder, and that’s one of the emotional vessels of the movie," said Muschietti. "That’s where the Affleck Batman kicks in."

Ezra Miller as Flash, Ben Affleck as Batman and Gal Gadot as Wonder Woman in Justice League. Photo: PA.

The IT director also praised Affleck for his "masculinity" and "vulnerability" in the role of Bruce Wayne.

READ ALSO: Ben Affleck's secret Instagram account exposed - with just three followers

The actor had previously stepped down from the role in January 2019 due to personal troubles, including his issues with alcohol. Affleck won't be the only former Batman to return as Michael Keaton will also reprise his role as Bruce Wayne from the Tim Burton Batman films, having last played the part in 1992's Batman Returns.

The next solo film for the character is Matt Reeves' The Batman, which will star Robert Pattinson in the titular role. The Batman will resume production in the UK later this year and is due to be released on October 1, 2021.

The Flash is due to be released in cinemas on June 3, 2022.