SilImage constructor

const SilImage(
  1. String? imgPath, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. BoxFit? fit = BoxFit.cover,
  6. Widget? placeholder,
  7. String? placeholderImgPath,
  8. String? errorImgPath,
  9. Color? backgroundColor,
  10. double? radius,
  11. Color? borderColor,
  12. BorderRadiusGeometry? borderRadius,
  13. double? borderWidth,
  14. EdgeInsetsGeometry? margin,
  15. AlignmentGeometry? alignment,
  16. String? packageName,
})

Implementation

const SilImage(this.imgPath,
    {Key? key,
    this.width,
    this.height,
    this.fit = BoxFit.cover,
    this.placeholder,
    this.placeholderImgPath,
    this.errorImgPath,
    this.backgroundColor,
    this.radius,
    this.borderColor,
    this.borderRadius,
    this.borderWidth,
    this.margin,
    this.alignment,
    this.packageName})
    : super(key: key);