assetIcon static method

Image assetIcon({
  1. required String assetName,
  2. double? height,
  3. double? width,
  4. BoxFit fit = BoxFit.cover,
})

Implementation

static Image assetIcon(
    {required String assetName,
    double? height,
    double? width,
    BoxFit fit = BoxFit.cover}) {
  return Image.asset(assetName,
      height: height, width: width, fit: fit, package: iconPackageName);
}