SvgAssetLoader constructor

const SvgAssetLoader(
  1. String assetName, {
  2. String? packageName,
  3. AssetBundle? assetBundle,
  4. SvgTheme? theme,
  5. 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,
});