svgFromAsset static method
Implementation
static Widget svgFromAsset(
{required String assetPath, double? width, double? height, BoxFit fit = BoxFit.contain, Color? color}) {
return SvgPicture.asset(
assetPath,
width: width,
height: height,
fit: fit,
colorFilter: color != null ? ColorFilter.mode(color, BlendMode.srcIn) : null,
);
}