HeroImage constructor

const HeroImage({
  1. Key? key,
  2. double? height,
  3. required String imgPath,
  4. String id = "",
  5. String? label,
  6. BoxFit? fit,
  7. bool useBorder = false,
  8. double? width = double.infinity,
  9. bool isRounded = false,
  10. required Color? color,
  11. EdgeInsets? padding = EdgeInsets.zero,
  12. EdgeInsets? margin,
})

Implementation

const HeroImage({
  Key? key,
  this.height,
  required this.imgPath,
  this.id = "",
  this.label,
  this.fit,
  this.useBorder = false,
  this.width = double.infinity,
  this.isRounded = false,
  required this.color,
  this.padding = EdgeInsets.zero,
  this.margin,
}) : super(key: key);