This post explains how to send command line variables and use them with flutter. Why send variables via command line? Being able to set a variable through command line comes in very handy whenever you want to change the variable depending on the environment/client it’s being built for. Without having to change code manually every time. A few common use cases would be to configure your app’s base URL during build time.
read more