When you encounter a flasher, the most important thing is to stay calm and don't panic. In fact, flashers are generally timid, and they get satisfaction and pleasure by scaring women. Therefore, the best way to deal with it is to leave as soon as possible as if nothing happened, so as not to encourage them to have similar behavior again or further stimulate them. You can ask for help from nearby passers-by or store staff, notify the police to arrest the person, etc.