SmoothImage constructor
const
SmoothImage({ - ImageProvider<Object>? imageProvider,
- double? height,
- double? width,
- Color? color,
- Decoration? decoration,
- BoxFit fit = BoxFit.cover,
- bool rounded = true,
- String? heroTag,
- int? cacheWidth,
- int? cacheHeight,
- String? semanticsLabel,
})
Implementation
const SmoothImage({
this.imageProvider,
this.height,
this.width,
this.color,
this.decoration,
this.fit = BoxFit.cover,
this.rounded = true,
this.heroTag,
this.cacheWidth,
this.cacheHeight,
this.semanticsLabel,
}) : assert(
cacheWidth == null || imageProvider is NetworkImage,
'cacheWidth requires a NetworkImage',
),
assert(
cacheHeight == null || imageProvider is NetworkImage,
'cacheHeight requires a NetworkImage',
);