load method

SvgPicture load({
  1. double? width,
  2. double? height,
  3. Color? color,
  4. BlendMode? blendMode,
  5. BoxFit fit = BoxFit.fill,
})

Implementation

SvgPicture load({
  double? width,
  double? height,
  Color? color,
  BlendMode? blendMode,
  BoxFit fit = BoxFit.fill,
}) {
  return SvgPicture.asset(
    'assets/$name.svg',
    width: width,
    height: height,
    colorFilter: color != null
        ? ColorFilter.mode(color, blendMode ?? BlendMode.srcIn)
        : null,
    fit: fit,
  );
}