Image.file constructor

Image.file(
  1. String path, {
  2. BoxFit? fit,
  3. Frame? frame,
  4. Anchor? shared,
  5. Key? key,
})

An image file on disk at path.

Implementation

Image.file(String path, {this.fit, this.frame, this.shared, super.key})
  : source = MediaSource.file(path);