SmoothImage constructor

const SmoothImage({
  1. ImageProvider<Object>? imageProvider,
  2. double? height,
  3. double? width,
  4. Color? color,
  5. Decoration? decoration,
  6. BoxFit fit = BoxFit.cover,
  7. bool rounded = true,
  8. String? heroTag,
  9. int? cacheWidth,
  10. int? cacheHeight,
  11. 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',
     );