assetImage static method

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

Implementation

static Widget assetImage(
  String res, {
  double? width,
  double? height,
  BoxFit? fit,
  Color? color,
}) {
  return Image.asset(
    imageResStr(res),
    width: width,
    height: height,
    fit: fit,
    color: color,
    // cacheWidth: width?.toInt(),
    package: _package,
  );
}