Flashes of light can be a symptom of retinal detachment. Thus in your age group should be examined by a doctor as time is essence in it's management. Please go to ER for an evaluation.
Please feel free for your follow up questions.
I would be happy to assist you further, if you need any more information.