StacImage.file constructor
const
StacImage.file(
- String path, {
- StacAlignment? alignment,
- StacColor? color,
- double? width,
- double? height,
- StacBoxFit? fit,
- StacImageRepeat? repeat,
- StacFilterQuality? filterQuality,
- String? semanticLabel,
- 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;