The name of the application for each build is located in resValue.
      If you specify a applicationIdSuffix instead of a applicationId, 
it is appended to the “base” application id.

flavorDimensions

"default"

productFlavors

free

dimension

"default"

resValue

"string"

"app_name"

"free flavor example"

applicationIdSuffix

".free"

Setting up launch configurations

Next, add a launch.json file; this allows you to run the command 
flutter run --flavor [environment name].

In VSCode, set up the launch configurations as follows:

In the root directory of your project, add a folder called .vscode.

Inside the .vscode folder, create a file named launch.json.