BuildConfig.dryRun constructor

BuildConfig.dryRun({
  1. required Uri outputDirectory,
  2. required String packageName,
  3. required Uri packageRoot,
  4. required OS targetOS,
  5. required LinkModePreference linkModePreference,
  6. Iterable<String>? supportedAssetTypes,
})

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,
    );