Hi... From what I understand, you have sudden onset of floaters and flashes of light. This could indicate a vitreo-retina issue. It is unlikely the optometrist would have done a detailed retina evaluation. Unfortunately online consultation cannot be done to visualise the retina.
Next Steps
Kindly visit a retina specialist close to your house.