SvgIconData constructor

const SvgIconData(
  1. String path, {
  2. String? package,
  3. bool preserveColors = false,
  4. bool matchTextDirection = false,
})

Creates svg icon data.

The package argument must be non-null when using svg that is included in a package. This is used when selecting the svg.

Implementation

const SvgIconData(
  this.path, {
  this.package,
  this.preserveColors = false,
  this.matchTextDirection = false,
});