From inside the code for my app I'm connecting to different Algolia servers based on whether the app is running on a release or on a dev environment.
For mobile I could check PackageInfo.packageName and it works good. But for web that's not an option.
So, my question is - how can I make a function that, when running flutter web on release returns the String "release" and on dev returns the String "dev"?