@@ -17,6 +17,7 @@ import 'asset.dart';
1717import 'build.dart' ;
1818import 'build_mode.dart' ;
1919import 'build_output.dart' ;
20+ import 'deprecation_messages.dart' ;
2021import 'hook_config.dart' ;
2122import 'ios_sdk.dart' ;
2223import 'link_mode_preference.dart' ;
@@ -41,6 +42,7 @@ abstract final class BuildConfig implements HookConfig {
4142 ///
4243 /// Not available during a [dryRun] . Will throw a [StateError] if accessed
4344 /// during a [dryRun] .
45+ @Deprecated (metadataDeprecation)
4446 Object ? metadatum (String packageName, String key);
4547
4648 /// Whether link hooks will be run after the build hooks.
@@ -106,6 +108,7 @@ abstract final class BuildConfig implements HookConfig {
106108 ///
107109 /// Parameter [dependencyMetadata] must be a nested map `{'packageName' :
108110 /// {'key' : 'value'}}` where ` packageName` and ` key` correspond to the
111+ // ignore: deprecated_member_use_from_same_package
109112 /// parameters in [metadatum] .
110113 factory BuildConfig .build ({
111114 required Uri outputDirectory,
@@ -120,6 +123,7 @@ abstract final class BuildConfig implements HookConfig {
120123 int ? targetAndroidNdkApi,
121124 CCompilerConfig ? cCompiler,
122125 required LinkModePreference linkModePreference,
126+ @Deprecated (metadataDeprecation)
123127 Map <String , Map <String , Object >>? dependencyMetadata,
124128 Iterable <String >? supportedAssetTypes,
125129 required bool linkingEnabled,
0 commit comments