10 hour flight with a 2 yo

I'm about to book a 10 hour overnight flight with my 2 year old. I wonder if it's possible for a toddler to sleep on the plane. Any experiences? I saw this inflatable footrest online, and I wonder if this could help her to sleep better on the plane.