How to add --no-sound-null-safety on a single run/debug on vscode (Flutter)?

On vscode, when try run or debug using "Run" or "Debug" button, the runner doesn't add --no-sound-null-safety argument.

How to configure vscode to add --no-sound-null-safety argument?

enter image description here

enter image description here


If using vscode. create .vscode/launch.json in project root and add

"args": [
     "--no-sound-null-safety"
    ]

complete code :-

    "version": "0.2.0",
    "configurations": [
            {
                    "name": "YOUR_PROJECT_NAME",
                    "program": "lib/main.dart",
                    "request": "launch",
                    "type": "dart",
                    "args": [
                            "--no-sound-null-safety"
                        ]
            }
    ]

}`


I added these items to the settings.json file.

{
    "dart.flutterTestAdditionalArgs": ["--no-sound-null-safety"],
    "dart.flutterAdditionalArgs": ["--no-sound-null-safety"],
    "dart.vmAdditionalArgs": ["--no-sound-null-safety"]
}