loadSvgFromAssets method

  1. @override
Widget loadSvgFromAssets({
  1. required String resId,
  2. double? width,
  3. double? height,
  4. Color? color,
})
override

Implementation

@override
Widget loadSvgFromAssets(
    {required String resId, double? width, double? height, Color? color}) {
  return SvgPicture.asset(
    "assets/$resId",
    color: color,
    width: width,
    height: height,
    matchTextDirection: true,
    fit: BoxFit.fitWidth,
  );
}