assetImage function

dynamic assetImage({
  1. dynamic image,
  2. dynamic height,
  3. dynamic width,
  4. dynamic fit,
})

Implementation

assetImage({image, height, width, fit}) {
  return Image.asset(
    image,
    fit: fit ?? BoxFit.contain,
    height: height ?? 140.0,
    width: width ?? 140.0,
  );
}