StacImage.file constructor

const StacImage.file(
  1. String path, {
  2. StacAlignment? alignment,
  3. StacColor? color,
  4. double? width,
  5. double? height,
  6. StacBoxFit? fit,
  7. StacImageRepeat? repeat,
  8. StacFilterQuality? filterQuality,
  9. String? semanticLabel,
  10. bool? excludeFromSemantics,
})

Creates an image widget that loads from a local file path.

Implementation

const StacImage.file(
  String path, {
  this.alignment,
  this.color,
  this.width,
  this.height,
  this.fit,
  this.repeat,
  this.filterQuality,
  this.semanticLabel,
  this.excludeFromSemantics,
}) : src = path,
     imageType = StacImageType.file;