The Flash star Grant Gustin, who portrayed the titular Scarlet Speedster in all nine seasons of the Arrowverse show, has confirmed that he was never approached about appearing in the Ezra Miller-led The Flash movie.
Source:https://www.cbr.com/the-flash-grant-gustin-never-asked-cameo-dceu-movie/