SimpleSvgImage constructor

SimpleSvgImage(
  1. String url, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.contain,
  6. Color? color,
  7. ColorFilter? colorFilter,
  8. bool setColorFilter = false,
})

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,
      );