Adding calculated variable to --dart-define in Flutter

Viewed 25

How can I add the calculated variable to --dart-define?

I want to run this:

flutter run --dart-define=githash=$(git rev-parse HEAD)

But it is not working. Appreciate if someone can advise. Thank you in advance!

0 Answers
Related