svg method

SvgPicture svg({
  1. Key? key,
  2. bool matchTextDirection = false,
  3. AssetBundle? bundle,
  4. String? package = 'antd_icons',
  5. double? width,
  6. double? height,
  7. BoxFit fit = BoxFit.contain,
  8. AlignmentGeometry alignment = Alignment.center,
  9. bool allowDrawingOutsideViewBox = false,
  10. WidgetBuilder? placeholderBuilder,
  11. Color? color,
  12. BlendMode colorBlendMode = BlendMode.srcIn,
  13. String? semanticsLabel,
  14. bool excludeFromSemantics = false,
  15. Clip clipBehavior = Clip.hardEdge,
  16. bool cacheColorFilter = false,
  17. SvgTheme? theme,
})

Implementation

SvgPicture svg({
  Key? key,
  bool matchTextDirection = false,
  AssetBundle? bundle,
  String? package = 'antd_icons',
  double? width,
  double? height,
  BoxFit fit = BoxFit.contain,
  AlignmentGeometry alignment = Alignment.center,
  bool allowDrawingOutsideViewBox = false,
  WidgetBuilder? placeholderBuilder,
  Color? color,
  BlendMode colorBlendMode = BlendMode.srcIn,
  String? semanticsLabel,
  bool excludeFromSemantics = false,
  Clip clipBehavior = Clip.hardEdge,
  bool cacheColorFilter = false,
  SvgTheme? theme,
}) {
  return SvgPicture.asset(
    _assetName,
    key: key,
    matchTextDirection: matchTextDirection,
    bundle: bundle,
    package: package,
    width: width,
    height: height,
    fit: fit,
    alignment: alignment,
    allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
    placeholderBuilder: placeholderBuilder,
    color: color,
    colorBlendMode: colorBlendMode,
    semanticsLabel: semanticsLabel,
    excludeFromSemantics: excludeFromSemantics,
    clipBehavior: clipBehavior,
    cacheColorFilter: cacheColorFilter,
    theme: theme,
  );
}