ExactAssetPicture constructor
ExactAssetPicture(
- PictureInfoDecoderBuilder<
String> decoderBuilder, - String assetName, {
- AssetBundle? bundle,
- String? package,
- ColorFilter? colorFilter,
Creates an object that fetches the given picture from an asset bundle.
The assetName and scale
arguments must not be null. The scale
arguments
defaults to 1.0. The bundle argument may be null, in which case the
bundle provided in the PictureConfiguration passed to the resolve call
will be used instead.
The package argument must be non-null when fetching an asset that is included in a package. See the documentation for the ExactAssetPicture class itself for details.
Implementation
ExactAssetPicture(
PictureInfoDecoderBuilder<String> decoderBuilder,
this.assetName, {
this.bundle,
this.package,
ColorFilter? colorFilter,
}) : assert(assetName != null), // ignore: unnecessary_null_comparison
super(decoderBuilder, colorFilter);