Image.file constructor

Image.file(
  1. File file, {
  2. Key? key,
  3. Widget frameBuilder(
    1. BuildContext,
    2. Widget,
    3. int?,
    4. bool,
    )?,
  4. Widget errorBuilder(
    1. BuildContext,
    2. Object,
    3. StackTrace?
    )?,
  5. String? semanticLabel,
  6. bool excludeFromSemantics = false,
  7. double? width,
  8. double? height,
  9. Color? color,
  10. BlendMode? colorBlendMode,
  11. BoxFit? fit,
  12. AlignmentGeometry alignment = Alignment.center,
  13. ImageRepeat repeat = ImageRepeat.noRepeat,
  14. Rect? centerSlice,
  15. bool matchTextDirection = false,
  16. bool gaplessPlayback = false,
  17. bool isAntiAlias = false,
  18. FilterQuality filterQuality = FilterQuality.medium,
  19. int? cacheWidth,
  20. int? cacheHeight,
  21. double? opacity,
})

Implementation

Image.file(
  File file, {
  super.key,
  this.frameBuilder,
  this.errorBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.width,
  this.height,
  this.color,
  this.colorBlendMode,
  this.fit,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.centerSlice,
  this.matchTextDirection = false,
  this.gaplessPlayback = false,
  this.isAntiAlias = false,
  this.filterQuality = FilterQuality.medium,
  this.cacheWidth,
  this.cacheHeight,
  this.opacity,
}) : image = FileImage(file);