It says here as Use Speedtest in your programs by wrapping it in the programming language of your choice in the official speedtest cli site. What does this mean? Can I use this results to generate in my flutter application?
Based on this forum, I don't think you could do that.
But, you could use the open-source internet speed test project from M-Lab and Google. You could see the GitHub Repo here.