asset static method

Widget asset(
  1. String asset, {
  2. Alignment alignment = Alignment.center,
  3. bool allowDrawingOutsideViewBox = false,
  4. Clip clipBehavior = Clip.hardEdge,
  5. ColorFilter? colorFilter,
  6. bool excludeFromSemantics = false,
  7. BoxFit fit = BoxFit.contain,
  8. double? height,
  9. Key? key,
  10. bool matchTextDirection = false,
  11. String? package,
  12. WidgetBuilder? placeholderBuilder,
  13. String? semanticsLabel,
  14. SvgTheme theme = const SvgTheme(),
  15. double? width,
})

Implementation

static Widget asset(
  String asset, {
  Alignment alignment = Alignment.center,
  bool allowDrawingOutsideViewBox = false,
  Clip clipBehavior = Clip.hardEdge,
  ColorFilter? colorFilter,
  bool excludeFromSemantics = false,
  BoxFit fit = BoxFit.contain,
  double? height,
  Key? key,
  bool matchTextDirection = false,
  String? package,
  WidgetBuilder? placeholderBuilder,
  String? semanticsLabel,
  SvgTheme theme = const SvgTheme(),
  double? width,
}) =>
    svgFromAsset(
      asset,
      alignment: alignment,
      allowDrawingOutsideViewBox: allowDrawingOutsideViewBox,
      clipBehavior: clipBehavior,
      colorFilter: colorFilter,
      excludeFromSemantics: excludeFromSemantics,
      fit: fit,
      height: height,
      key: key,
      matchTextDirection: matchTextDirection,
      placeholderBuilder: placeholderBuilder,
      package: package,
      semanticsLabel: semanticsLabel,
      theme: theme,
      width: width,
    );