ImageShape constructor

ImageShape({
  1. required Image image,
  2. Color? borderColor,
  3. Color color = Colors.grey,
  4. Offset location = const Offset(0, 0),
  5. Size size = const Size(20, 20),
  6. String text = '',
  7. TextAlign textAlign = TextAlign.center,
  8. TextStyle textStyle = const TextStyle(color: Colors.black, fontSize: 20),
  9. int zIndex = 0,
  10. Radius borderRadius = Radius.zero,
  11. int reactSize = 10,
})

Implementation

ImageShape({
  required this.image,
  super.borderColor,
  super.color,
  super.location,
  super.size,
  super.text,
  super.textAlign,
  super.textStyle,
  super.zIndex,
  super.borderRadius,
  super.reactSize,
}) {
  size = Size(image.width.toDouble(), image.height.toDouble());
}