An Islamic State flag, pictured here in 2019 in one of the group’s last strongholds in Syria, has been flown in NSW. 