Creates a widget that displays an ImageStream obtained from a File.
The file
, scale
, and repeat arguments must not be null.
On Android, this may require the
android.permission.READ_EXTERNAL_STORAGE
permission.
Source
Image.file(File file, { Key key, double scale: 1.0, this.width, this.height, this.color, this.fit, this.alignment, this.repeat: ImageRepeat.noRepeat, this.centerSlice, this.gaplessPlayback: false }) : image = new FileImage(file, scale: scale), super(key: key);