You are likely experiencing a PVD or posterior vitreous detachment, a common event that happens in many people.You have a thick gel material in the middle of your eyes. Over time as it liquefies, this gel material collapses on itself and pulls away from the wall of the eye. In the process it can stimulate the retina -- causing the flashes that you see.It is recommended that you see your ophthalmologist to look at the retina to make sure there are no problems such as a retinal hole or tear. In most cases, there are no problems, but this exam in precautionary and allows for preventative treatment of any lesions that are found.If you notice a sudden increase in floaters, flashes of light (like a lightening storm), or a shadow/veil in the periphery of your vision, this can be worrisome for a retinal detachment. You would need to contact your ophthalmologist promptly in that case.Please remember to press the accept button so I can receive credit for assisting you.
Let me know if you have any additional questions.