toSVGImage method

Widget toSVGImage({
  1. double? width,
  2. double? height,
  3. double? square,
  4. Color? color,
})

Implementation

Widget toSVGImage({
  double? width,
  double? height,
  double? square,
  Color? color,
}) =>
    SvgPicture.asset(
      '${GlobalConfig.svgAssetFolderPath}/$this',
      width: square ?? width,
      height: square ?? height,
      colorFilter: color != null ? ColorFilter.mode(color, BlendMode.srcIn) : null,
    );