He thinks (?) I cheated so he dumped me. Would you consider this cheating?

My boyfriend and I have a long history (17 years knowing each other, this is our 3rd time trying a relationship. We both see a forever future together). This time we’ve been struggling at it for a year, and after so many ups and downs our relationship had a lot of stress built up. One night he looked through my phone and found text messages between myself and a male friend- some of the messages are flirty- not anything raunchy just like innocent flirty. ( Why?- my boyfriend had been completely closed off/emotionally detached/ keeping me at arms length for the entire year- I was feeling rejected for awhile and desperately seeking emotional validation.). This friend and I have never done anything beyond friends but I know he likes me a bit. Anyways my boyfriend originally said ‘hey, we need to talk about this guy’, which I agreed to and was more than happy to be fully transparent! Then before we met up he flipped out over text, calling me a cheater and everything else awful to say to someone. Dumped me. A few days later he texted asking if I love him. Honestly don’t understand how he went from wanting to understand the situation to accusing me of cheating. Is this what he really believes or was that an overreaction? Do you think texting is cheating?
He thinks (?) I cheated so he dumped me. Would you consider this cheating?
Post Opinion