When is breastfeeding cutoff?

In your opinion, I didn’t think I’d have to think about this but when is an appropriate age for your child not to be breastfed? I wanted to go past a year and if we got to two we’ll than more power to us, but wow have I received a bit of backlash from my family. “You’re going to have a full grown toddler on your boob.” “He’ll be too old for it then”

Just looking for opinions on the topic.