ChatBubbleShape constructor

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

Implementation

ChatBubbleShape({
  Offset? arrowPoint,
  super.location,
  super.size,
  super.color,
  super.zIndex,
  super.text,
  super.textAlign,
  super.textStyle,
  super.borderColor,
  super.borderRadius,
  super.reactSize,
}) {
  this.arrowPoint = arrowPoint ?? location.translate(30, size.height + 50);
}