Nothing worked for me so my solution was to clear all code of the class I couldn't find and then perform a flutter clean => flutter pub get , which will result in making a syntax error to every location that used that class, then I would just simply re-import it.
My problem was that the folder name started in CAPS LOCK and the actual name was not, so I guess the IDE got confused.