SilImage constructor
const
SilImage(
- String? imgPath, {
- Key? key,
- double? width,
- double? height,
- BoxFit? fit = BoxFit.cover,
- Widget? placeholder,
- String? placeholderImgPath,
- String? errorImgPath,
- Color? backgroundColor,
- double? radius,
- Color? borderColor,
- BorderRadiusGeometry? borderRadius,
- double? borderWidth,
- EdgeInsetsGeometry? margin,
- AlignmentGeometry? alignment,
- 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);