fileImage static method

dynamic fileImage({
  1. dynamic image,
  2. dynamic height,
  3. dynamic width,
  4. dynamic fit,
  5. dynamic radius,
})

Implementation

static fileImage({image, height, width, fit, radius}) {
   return ClipRRect(
     borderRadius: BorderRadius.circular(radius ?? 0),
     child: Image.file(image,
         height: height ?? 50,
         width: width ?? 50,
         fit: fit ?? BoxFit.cover,
         filterQuality: FilterQuality.high),
   );
 }