Setting environment variables in Flutter : <p>For example, building a client for an API, like Twitch.</p>

<p>In a Dart CLI binary, I could use a generic environment variable, or a Dart definition variable. For example, using both as fallbacks:</p>

<pre><code>main() {
  String clientId = 
      // dart -dCLIENT_ID='abc bin/example.dart
      // This is considered "compiled-into" the application.
      const String.fromEnvironment('CLIENT_ID') ??

      // CLIENT_ID='abc' dart bin/example.dart
      // This is considered a runtime flag.
      Platform.environment['CLIENT_ID'];

  // Use clientId.
}
</code></pre>

<p>Does Flutter have a way of setting either/both of these, specifically...</p>

<ul>
<li>During dev time</li>
<li>When shipped to prod</li>
</ul>

<p>Happy to help with some docs once I figure out how :)</p>
