You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dart2native --help
Usage: dart2native <main-dart-file> [<options>]
Generates an executable or an AOT snapshot from <main-dart-file>.
-D, --define=<key=value> Set values of environment variables. To specify multiple variables, use multiple options or use commas to separate key-value pairs.
E.g.: dart2native -Da=1,b=2 main.dart
I was confused by this. I didn't think of environment declarations that will be read via [int|String...].fromEnvironment, but of actual OS environment variables, so that option did not make much sense for me.
This wording is also not very googleable, as "dart environment variables" returns no related result.
I suggest replacing "environment variables" with "environment declarations". This is consistent with the documentation of String.fromRuntime for example:
Returns the string value of the environment declaration name. Environment declarations are provided by the surrounding system compiling or running the Dart program. Declarations map a string key to a string value.
dart2native --help
prints:I was confused by this. I didn't think of environment declarations that will be read via [int|String...].fromEnvironment, but of actual OS environment variables, so that option did not make much sense for me.
This wording is also not very googleable, as "dart environment variables" returns no related result.
I suggest replacing "environment variables" with "environment declarations". This is consistent with the documentation of String.fromRuntime for example:
https://api.flutter.dev/flutter/dart-core/String/String.fromEnvironment.html
Related: #17262
Dart Version
The text was updated successfully, but these errors were encountered: