If a marriage or domestic partnership of a woman who gives birth to a child conceived by assisted reproduction is terminated through dissolution, subject to legal separation, declared invalid, or annulled before transfer of gametes or embryos to the woman, a former spouse or domestic partner of the woman is not a parent of the child unless the former spouse or domestic partner consented in a record that the former spouse or domestic partner would be a parent of the child if assisted reproduction were to occur after a dissolution, legal separation, declaration of invalidity, or annulment, and the former spouse or domestic partner did not withdraw consent under RCW
26.26A.630.