The mistake OP is referring to is spending too much time learning the wrong thing which is easy to do in the Cargo Cult that is modern Software Development.
it's arguably one of the strengths of Flutter, regardless of where you come from there's nothing esoteric to it, so it's not like you learn the wrong thing. Learning Programming isn't about memorizing APIs or libraries, it's about concepts.
If you've done Flutter for several years your experience translates just fine to say React native, you just gotta learn Javascript
Maybe not, but interviewing often is.