ImageShape constructor

ImageShape({
  1. required Image image,
  2. Radius borderRadius = Radius.zero,
  3. Size minimumSizeOfImage = const Size(40, 40),
  4. Color color = Colors.transparent,
  5. Offset location = const Offset(0, 0),
  6. Size size = const Size(20, 20),
  7. int zIndex = 0,
  8. int reactSize = 10,
})

Implementation

ImageShape({
  required this.image,
  this.borderRadius = Radius.zero,
  this.minimumSizeOfImage = const Size(40, 40),
  super.color,
  super.location,
  super.size,
  super.zIndex,
  super.reactSize,
}) {
  size =
      calculatedSize(Size(image.width.toDouble(), image.height.toDouble()));
}