Hello, Welcome to Just Answer
Are you available for chat now?
I shall type my response here so that you can view it later once you are available again.
What you have observed is called photopsia or flashes of light. This is often seen in those conditions in which there is irritation to the retina. It certainly is a feature of ocular migraine. In ocular migraine the headache component may or may not be seen. Migraine can be associated with flashes of light and scintillating scotoma( part of the visual field may appear blurred). It can last from few minutes to a hour or so. The frequency of episodes can vary from person to person. There can be aggravating or relieving factors for the episodes. Aggravating factors can be either in the form of some food/sound/visual stimulus. If none of the aggravating factors are seen then it can occur just anytime. Though there are no medicines which can be used for prevention of these ocular symptoms, the associated headaches can be prevented with prophylactic medicines such as Tab.Flunarizine, 5 mg at bedtime( can cause drowsiness in some).
The other condition where you can experience flashes of light and floaters is posterior vitreous detachment(PVD).PVD is a condition in which the thick gel at the back of the eye gets detached from its retinal attachment as a result of aging. During this the retina gets irritated or kind of stretched and gives rise to the symptom of flashes of light. Once the vitreous gets detached , it gets clumped and gives rise to the symptom of floaters ( wavy line/cobwebs/black strings). It is otherwise a harmless condition which needs no further treatment except for the fact that very rarely it may induce tiny peripheral retinal tears. Now these retinal tears can be detected by a dilated eye exam and if found they can be safely sealed with lasers. If left alone the retinal tears have a remote tendency to get converted into a frank retinal detachment. The visual acuity remains more or less good except when obscured by a large floater.
If you have got a dilated eye exam done by an ophthalmologist(eye MD and not an optometrist) then I guess there is nothing to worry about any kind of peripheral retinal tears. But if the eye doctor who examined you was not an ophthalmologist , then it would be wise to get it done in the next few days.
A word of caution here is that if any further episodes of flashes of light do occur with sudden floaters or sudden reduction in vision( as if seeing through a curtain or veil) then do get the dilated eye exam done ASAP so as to check for intactness of the retina( such an acute presentation can occur in a frank retinal detachment).This is very rare in normal individuals and is more often seen in those predisposed to it such as high myopia( short sightedness).
Please feel free to ask follow up questions , if any.
Thank you and best wishesIf you are satisfied with the answer , please press the accept button so that I get my dues.A bonus and positive feedback are welcome.Views expressed are for information purpose only and cannot substitute a visit to an ophthalmologist