If being a mom is your number one goal in life then I’d say you need to leave. Someone who feels the way your husband feels (going by his comment), isn’t going to suddenly change that view in 2 years.
My husband and I have some experience with this same situation, but in reverse. I always wanted children. I wanted at least 4. As I got older, my views changed and I thought maybe just 3, then maybe just 2. After being married for 1.5 years I was having so much fun with my husband, that I thought maybe I shouldn’t have any at all. I have PCOS, and had been told that I may never have children or it may be difficult for me to conceive and carry to term. I didn’t meet my husband until I was 26, got married at 27, so my biological clock was ticking loudly with my age and condition, and I hated the feeling that I’d have to TTC before I was ready because of it. I told my husband and he was understandably upset. We had a few terse conversations, and though I’d always been honest, he felt I’d crawfished and hadn’t told the truth when I said I wanted children in the beginning. He eventually said that he wanted our relationship more than children, but hoped I’d change my mind.
I really struggled with this for months. Then, my period was late, and I took a pregnancy test. It was negative, but looking at it made me realize I had half-hoped it’d be positive. I realized all of my reservations were out of fear. Fear about money, my ability to be a mom, our ability to raise a well behaved child that grew to be a kind and contributing member of society, and a huge fear of having my child go to daycare (my mom was a SAHM). So, we decided to try, and I now have a 4 month old I love with my entire being.
There are a few big things here. You’re both young, so his desire to have children while young was a far off idea, something he didn’t have to think of practically, and that definitely could have changed in the 10 years you’ve been together. If you’re in your early twenties, are you saying you met at 14 or even younger? If so, you can’t really count that in the years together, you were children. Children can’t be in a romantic relationship. But you also can’t hold the views he held about children as solid then, because again you were actual children. Now, if he’s known for a while bow that his views had changed, especially if he knew before you got married, then that was wrong of him. I suspect this, mainly because of the comment he made. I would leave for that, if you believe it to be the case.
If he’s just suddenly changed his mind and told you as soon as he did, then he’s been honest and can’t be faulted for it, but you should probably still leave, because he doesn’t sound like he’s on the fence at all, but firmly in the no kids camp.