OptimizedImage constructor
const
OptimizedImage({})
Implementation
const OptimizedImage({
super.key,
this.assetPath,
this.networkUrl,
this.bytes,
this.width,
this.height,
this.fit = BoxFit.cover,
this.maxWidth,
this.maxHeight,
this.placeholder,
this.errorWidget,
this.httpHeaders,
}) : assert(
(assetPath != null ? 1 : 0) +
(networkUrl != null ? 1 : 0) +
(bytes != null ? 1 : 0) ==
1,
'Provide exactly one of: assetPath, networkUrl, bytes',
);