setupBuildConfig method

void setupBuildConfig({
  1. required bool dryRun,
  2. required bool linkingEnabled,
  3. Map<String, Metadata> metadata = const {},
})

Implementation

void setupBuildConfig({
  required bool dryRun,
  required bool linkingEnabled,
  Map<String, Metadata> metadata = const {},
}) {
  json[_dryRunConfigKey] = dryRun;
  json[_linkingEnabledKey] = linkingEnabled;
  json[_dependencyMetadataKey] = {
    for (final key in metadata.keys) key: metadata[key]!.toJson(),
  };
}