call method

SvgPicture call({
  1. Key? key,
  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. String? semanticsLabel,
  10. bool excludeFromSemantics = false,
  11. Clip clipBehavior = Clip.hardEdge,
  12. SvgTheme theme = const SvgTheme(),
  13. ColorFilter? colorFilter,
  14. @Deprecated('Parameter is deprecated in flutter_svg') Color? color,
  15. @Deprecated('Parameter is deprecated in flutter_svg') BlendMode colorBlendMode = BlendMode.srcIn,
  16. @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,
);