Since flavors are not supported on macOS you may be interested in this easy, clean and pragmatic approach, which works for all platforms:

https://medium.com/software-development-at-skalio/how-to-separate-test-and-production-environments-in-flutter-e915e3125525

GitHub-flavored Markdown & a sane subset of HTML is supported.