All the above answers above seems not working for me. Instead, this worked:
WebUri webUrl = WebUri("your url")
No need to pass any parse or uri function, that doesnt work in new android and flutter versions.