Should I tell people I feel I'm an avoidant

I'm coming to terms with the fact I'm an avoidant. I avoided dating for 9 years because I didn't trust myself. I didn't know anything about attachment styles or that my childhood was filled with neglect until now. I was ghosted by an avoidant this past year and it cut me to the core. As, I go out and persue relationships, I want them to last. If they end I want them to end respectfully and not without an honest effort from myself or them.

So, do I tell people that I'm avoidant and how?