How to deal with heartbreak

I just broke up with my babies father today we been together almost 4 years we have a 1 year old and a baby due in a few months. I just couldn’t take the disrespect anymore the man talks and treats me like crap nothing is never good enough for him. He doesn’t value my feelings all he says is I complain all the time he doesn’t help me when he sees that I’m tired or just need a break he says it’s life deal with it. So today I just had enough I packed up our things and went back home. Cause I finally woke up in seen that he doesn’t want to be with me anyways I have a feelings that he is cheating again. So to keep my sanity and my freedom it was time to end things. I really don’t want to see him or hear his voice no time soon because I am hurt I wasted all my time and energy into this so called relationship only to get mistreated. I just don’t want to keep the babies away from him cause I’m not that type of person. I just need to figure out how to control my emotions cause right now I’m a mess