file property

  1. @override
Uri? file
override

The file to be bundled with the Dart or Flutter application.

How this file is bundled depends on the kind of asset, represented by a concrete subtype of Asset, and the SDK (Dart or Flutter).

If the linkMode is DynamicLoadingBundled, the file name must be provided in the BuildOutput for BuildConfig.dryRun. Supplying a file name instead of an absolute path is enough for BuildConfig.dryRun. The file does not have to exist on disk during a dry run.

If the linkMode is DynamicLoadingSystem, LookupInProcess, or LookupInExecutable the file must be omitted in the BuildOutput for BuildConfig.dryRun.

Implementation

@override
Uri? get file;