loadFileAsSvg function

Widget loadFileAsSvg(
  1. String path, {
  2. double? height,
  3. double? width,
  4. BoxFit? fit,
  5. Color? color,
})

Implementation

Widget loadFileAsSvg(String path, {double? height, double? width, BoxFit? fit, Color? color}) {
  return SvgPicture.file(File(path), height: height ?? 24, width: width ?? 24, fit: fit ?? BoxFit.cover, colorFilter: color != null ? ColorFilter.mode(color, BlendMode.srcIn) : null);
}