So it felt to you that she just flipped the switch but the truth is this was likely brewing for years. There’s a lot of incentive to keep the peace when living with someone. Once she found her om there was no incentive to keep the peace anymore so she would let you have it.
Be thankful she’s out of your life and start to build a great life for you and your daughters.