SvgProvider constructor

const SvgProvider(
  1. String path, {
  2. Size? size,
  3. double? scale,
  4. Color? color,
  5. SvgSource source = SvgSource.asset,
  6. SvgStringGetter? svgGetter,
})

Width and height can also be specified from Image constructor. Default size is 100x100 logical pixels. Different size can be specified in Image parameters

Implementation

const SvgProvider(
  this.path, {
  this.size,
  this.scale,
  this.color,
  this.source = SvgSource.asset,
  this.svgGetter,
});