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 set up a Flutter environment?
It provides startup template to create new Flutter application, an option to run and debug Flutter application in the Android studio itself, etc.,
Read moreWhat are Flavours in flutter?
Android Flavors (or schemes on iOS) are defined by categorising different compile-time configuration build types for different stages of development taking in consideration the version of app the particular team is currently working to get in-lined the maximum effeciency . Flavor: Same App, Different Behaviour.2 Nis 2020
Read moreHow do you make build variants in flutter?
For android studio build support, just create multiple custom configurations by going to the edit configuration panel.
Read moreHow do I create a Flutter development environment?
Install the Flutter and Dart plugins
Read more