loadImageFromAssets method

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

Implementation

@override
Widget loadImageFromAssets(
    {required String resId,
    double? width,
    double? height,
    Color? color,
    BoxFit? fit}) {
  return Image.asset(
    "assets/$resId",
    width: width,
    height: height,
    color: color,
    fit: fit,
    package: 'aadhaar_offline_ekyc',
  );
}