SvgAssetLoader constructor
const
SvgAssetLoader(
- String assetName, {
- String? packageName,
- AssetBundle? assetBundle,
- SvgTheme? theme,
- ColorMapper? colorMapper,
Creates an instance of SvgAssetLoader for loading SVG assets.
The assetName
represents the name of the asset to load, e.g., 'foo.svg'.
The optional packageName
indicates the package containing the asset.
The optional assetBundle
specifies the asset bundle to use;
if null, DefaultAssetBundle will be used.
Implementation
const SvgAssetLoader(
this.assetName, {
this.packageName,
this.assetBundle,
super.theme,
super.colorMapper,
});