AppImage.file constructor
const
AppImage.file(
- String filePath, {
- Key? key,
- double? width,
- double? height,
- BoxFit fit = BoxFit.cover,
- double? borderRadius,
- Widget? loadingWidget,
- Widget? errorWidget,
- Widget? placeholder,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- double? opacity,
- Color? color,
- BlendMode? colorBlendMode,
Creates an image from a local file.
Implementation
const AppImage.file(
String filePath, {
super.key,
this.width,
this.height,
this.fit = BoxFit.cover,
this.borderRadius,
this.loadingWidget,
this.errorWidget,
this.placeholder,
this.border,
this.boxShadow,
this.margin,
this.padding,
this.opacity,
this.color,
this.colorBlendMode,
}) : source = AppImageSource.file,
path = filePath;