SVGNetwork constructor

SVGNetwork(
  1. String url, {
  2. Key? key,
  3. double? size,
  4. double? height,
  5. double? width,
  6. bool matchTextDirection = false,
  7. BoxFit fit = BoxFit.contain,
  8. AlignmentGeometry alignment = Alignment.center,
  9. bool allowDrawingOutsideViewBox = false,
  10. WidgetBuilder? placeholderBuilder,
  11. String? semanticsLabel,
  12. bool excludeFromSemantics = false,
  13. Clip clipBehavior = Clip.hardEdge,
  14. bool cacheColorFilter = false,
  15. SvgTheme? theme,
  16. ColorFilter? colorFilter,
  17. BlendMode colorBlendMode = BlendMode.srcIn,
  18. Color? color,
  19. Map<String, String>? headers,
})

Implementation

SVGNetwork(String url,
    {super.key,
    double? size,
    double? height,
    double? width,
    super.matchTextDirection = false,
    super.fit = BoxFit.contain,
    super.alignment = Alignment.center,
    super.allowDrawingOutsideViewBox = false,
    super.placeholderBuilder,
    super.semanticsLabel,
    super.excludeFromSemantics = false,
    super.clipBehavior = Clip.hardEdge,
    super.cacheColorFilter = false,
    super.theme,
    ColorFilter? colorFilter,
    BlendMode colorBlendMode = BlendMode.srcIn,
    Color? color,
    super.headers})
    : super.network(url,
          colorFilter: colorFilter ?? _getColorFilter(color, colorBlendMode),
          width: width ?? size,
          height: height ?? size);