SimpleSvgImage constructor
SimpleSvgImage(})
Implementation
SimpleSvgImage(
String url, {
super.key,
this.width,
this.height,
this.fit = BoxFit.contain,
this.color,
this.colorFilter,
this.setColorFilter = false,
}) : child = SvgPicture.asset(
url,
width: width,
height: height,
fit: fit,
colorFilter: setColorFilter
? ColorFilter.mode(color ?? AppColors.black, BlendMode.srcIn)
: colorFilter,
);