flashes of light indicate problem in the posterior portion of the eye i.e. Retina
or the vitreous.
it is usually painless, transient unilateral.
retinal conditions as traction , hole.
vitreous cond as degeneration , traction, inflammation.
you need to seek a retina specialist who have dilated retina examination n do the needful