Asset constructor

const Asset(
  1. dynamic asset, {
  2. Key? key,
  3. double? height,
  4. double? width,
  5. Color? color,
  6. Widget? placeholder,
  7. Widget? errorWidget,
  8. BorderRadiusGeometry? borderRadius,
  9. BoxShape? shape,
  10. void onTap()?,
  11. BoxFit fit = BoxFit.fill,
})

Implementation

const Asset(
  this.asset, {
  super.key,
  this.height,
  this.width,
  this.color,
  this.placeholder,
  this.errorWidget,
  this.borderRadius,
  this.shape,
  this.onTap,
  this.fit = BoxFit.fill,
});