SVGNetwork constructor
SVGNetwork(
- String url, {
- Key? key,
- double? size,
- double? height,
- double? width,
- bool matchTextDirection = false,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- bool allowDrawingOutsideViewBox = false,
- WidgetBuilder? placeholderBuilder,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- Clip clipBehavior = Clip.hardEdge,
- bool cacheColorFilter = false,
- SvgTheme? theme,
- ColorFilter? colorFilter,
- BlendMode colorBlendMode = BlendMode.srcIn,
- Color? color,
- 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);