I was still nursing my daughter at that age... and SHE self-weaned at about 2.5 years old. On her own.
My Husband, was PROUD of me, for doing this, and he had the same feelings about it as I did. He was proud I breastfed and allowed our kids to self-wean. I still did have milk.
My son self-weaned at about 1 year old.
What I also did was, talk with my daughter about it... no demands, but explaining that one-day.... she will be not needing to nurse and she'd be a big girl. I also would sometimes, if she asked, I would say "in a minute, Mommy is busy..." and then I would not sit down and make myself busy. Then she'd get distracted and forget about it.
My friends with kids that same age, put Band-aids on their nipples, and explained "Mommy has an owie..." or, 'Mommy's milk doesn't work anymore..." and they said that worked for them. Successfully.
My daughter was fully eating foods and drinking whole milk. But she still nursed. But as I said, she self-weaned... even though she was very attached to it and me.
I also taught my daughter "manners" about it... that it is my boobs... and that she can't just lift up my shirt or 'demand' it, and not in public. She was polite about it.
all the best,
Susan