There is not a simple way to know the flavor name, however I would suggest you to use an environment variable, loaded from flutter_dotenv for example . This will allow you (as developer) to easily change the behaviour of your app and switch from different environments seamlessy.
Read moreWhat are activities in flutter?
Activity which displays a fullscreen Flutter UI. FlutterActivity is the simplest and most direct way to integrate Flutter within an Android app.
Read moreHow do you get build flavor in flutter?
The first step is to download google-services. json file(s) from each Firebase project to a temporary location at your machine. Next, create two folders android/app/src/dev and android/app/src/prod for each flavor. The Firebase configuration files go under their flavor folders under android/app/src/ folder..
Read moreDoes Flutter support Linux?
Desktop support allows you to compile Flutter source code to a native Windows, macOS, or Linux desktop app . Flutter’s desktop support also extends to plugins—you can install existing plugins that support the Windows, macOS, or Linux platforms, or you can create your own.
Read moreHow do I create a Flutter development environment?
Install the Flutter and Dart plugins
Read more