call method
SvgPicture
call({
- Key? key,
- bool matchTextDirection = false,
- double? width,
- double? height,
- BoxFit fit = BoxFit.contain,
- AlignmentGeometry alignment = Alignment.center,
- bool allowDrawingOutsideViewBox = false,
- WidgetBuilder? placeholderBuilder,
- String? semanticsLabel,
- bool excludeFromSemantics = false,
- Clip clipBehavior = Clip.hardEdge,
- SvgTheme theme = const SvgTheme(),
- ColorFilter? colorFilter,
- @Deprecated('Parameter is deprecated in flutter_svg') Color? color,
- @Deprecated('Parameter is deprecated in flutter_svg') BlendMode colorBlendMode = BlendMode.srcIn,
- @Deprecated('Parameter is deprecated in flutter_svg') bool cacheColorFilter = false,
Converts an SvgAsset to an SvgPicture
.
Implementation
SvgPicture call({
Key? key,
bool matchTextDirection = false,
double? width,
double? height,
BoxFit fit = BoxFit.contain,
AlignmentGeometry alignment = Alignment.center,
bool allowDrawingOutsideViewBox = false,
WidgetBuilder? placeholderBuilder,
String? semanticsLabel,
bool excludeFromSemantics = false,
Clip clipBehavior = Clip.hardEdge,
SvgTheme theme = const SvgTheme(),
ColorFilter? colorFilter,
@Deprecated('Parameter is deprecated in flutter_svg') Color? color,
@Deprecated('Parameter is deprecated in flutter_svg') BlendMode colorBlendMode = BlendMode.srcIn,
@Deprecated('Parameter is deprecated in flutter_svg') bool cacheColorFilter = false,
}) => SvgPicture.asset(
path,
key: key,
matchTextDirection: matchTextDirection,
package: package,
width: width,
height: height,
fit: fit,
alignment: alignment,
allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
placeholderBuilder: placeholderBuilder,
semanticsLabel: semanticsLabel,
excludeFromSemantics: excludeFromSemantics,
clipBehavior: clipBehavior,
theme: theme,
colorFilter: colorFilter,
color: color,
colorBlendMode: colorBlendMode,
cacheColorFilter: cacheColorFilter,
);