AppImage.file constructor

const AppImage.file(
  1. String filePath, {
  2. Key? key,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.cover,
  6. double? borderRadius,
  7. Widget? loadingWidget,
  8. Widget? errorWidget,
  9. Widget? placeholder,
  10. BoxBorder? border,
  11. List<BoxShadow>? boxShadow,
  12. EdgeInsetsGeometry? margin,
  13. EdgeInsetsGeometry? padding,
  14. double? opacity,
  15. Color? color,
  16. 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;