BuildConfig.dryRun constructor
BuildConfig.dryRun({})
Constructs a config for a dry run by providing values for each field.
Build hooks will most likely use build instead of this constructor. However, for unit testing code which consumes a BuildConfig, this constructor facilitates easy construction.
For the documentation of the parameters, see the equally named fields.
Implementation
factory BuildConfig.dryRun({
required Uri outputDirectory,
required String packageName,
required Uri packageRoot,
required OS targetOS,
required LinkModePreference linkModePreference,
Iterable<String>? supportedAssetTypes,
}) =>
BuildConfigImpl.dryRun(
outputDirectory: outputDirectory,
packageName: packageName,
packageRoot: packageRoot,
targetOS: targetOS as OSImpl,
linkModePreference: linkModePreference as LinkModePreferenceImpl,
supportedAssetTypes: supportedAssetTypes,
);