assetImage static method

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

Implementation

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