Image.file constructor
Image.file(
- File file, {
- Key? key,
- Widget frameBuilder(
- BuildContext,
- Widget,
- int?,
- bool,
- Widget errorBuilder()?,
- String? semanticLabel,
- bool excludeFromSemantics = false,
- double? width,
- double? height,
- Color? color,
- BlendMode? colorBlendMode,
- BoxFit? fit,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- bool gaplessPlayback = false,
- bool isAntiAlias = false,
- FilterQuality filterQuality = FilterQuality.medium,
- int? cacheWidth,
- int? cacheHeight,
- 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);