loadSvg static method

Widget loadSvg(
  1. String filename, {
  2. double? width,
  3. double? height,
  4. Color? color,
  5. String? package,
  6. BoxFit fit = BoxFit.scaleDown,
})

Implementation

static Widget loadSvg(String filename, {double? width, double? height, Color? color, String? package, BoxFit fit = BoxFit.scaleDown}){
  return SvgPicture.asset('assets/images/$filename', height: width, width: height, package: package, fit: fit, );
}