SVGAsset constructor
SVGAsset(
- String assetName, {
- Key? key,
- double? size,
- double? height,
- double? width,
- bool matchTextDirection = false,
- AssetBundle? bundle,
- String? package,
- 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,
Implementation
SVGAsset(
String assetName, {
super.key,
double? size,
double? height,
double? width,
super.matchTextDirection = false,
super.bundle,
super.package,
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.asset(assetName,
colorFilter: colorFilter ?? _getColorFilter(color, colorBlendMode),
width: width ?? size,
height: height ?? size);