We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc32eb6 commit a8857e6Copy full SHA for a8857e6
frontend_server_client/lib/src/frontend_server_client.dart
@@ -68,6 +68,8 @@ class FrontendServerClient {
68
bool printIncrementalDependencies = true,
69
List<String> additionalSources = const [],
70
String? nativeAssets,
71
+ // -D=key=value arguments for dart environment variables
72
+ Map<String, String>? dartDefines,
73
}) async {
74
final commonArguments = <String>[
75
'--sdk-root',
@@ -97,6 +99,9 @@ class FrontendServerClient {
97
99
'--native-assets',
98
100
nativeAssets,
101
],
102
+ if (dartDefines != null) ...[
103
+ for (var entry in dartDefines.entries) '-D=${entry.key}=${entry.value}',
104
+ ],
105
];
106
late final Process feServer;
107
if (frontendServerPath != null) {
0 commit comments