SvgImage constructor

const SvgImage(
  1. SvgProvider svgProvider, {
  2. bool matchTextDirection = false,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.contain,
  6. AlignmentGeometry alignment = Alignment.center,
  7. bool allowDrawingOutsideViewBox = false,
  8. WidgetBuilder? placeholderBuilder,
  9. Color? color,
  10. BlendMode colorBlendMode = BlendMode.srcIn,
  11. String? semanticsLabel,
  12. bool excludeFromSemantics = false,
  13. Clip clipBehavior = Clip.hardEdge,
  14. bool cacheColorFilter = false,
  15. SvgTheme? theme,
  16. Key? key,
})

Implementation

const SvgImage(
  this.svgProvider, {
  this.matchTextDirection = false,
  this.width,
  this.height,
  this.fit = BoxFit.contain,
  this.alignment = Alignment.center,
  this.allowDrawingOutsideViewBox = false,
  this.placeholderBuilder,
  this.color,
  this.colorBlendMode = BlendMode.srcIn,
  this.semanticsLabel,
  this.excludeFromSemantics = false,
  this.clipBehavior = Clip.hardEdge,
  this.cacheColorFilter = false,
  this.theme,
  Key? key,
}) : super(key: key);