MChatTextBubble constructor

MChatTextBubble({
  1. Key? key,
  2. required String text,
  3. BoxConstraints? constraints,
  4. EdgeInsets margin = EdgeInsets.zero,
  5. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
  6. double? bubbleRadius,
  7. bool isSender = true,
  8. Color? color,
  9. bool tail = true,
  10. bool sent = false,
  11. bool delivered = false,
  12. bool seen = false,
  13. VoidCallback? onTap,
  14. VoidCallback? onDoubleTap,
  15. VoidCallback? onLongPress,
  16. Widget? leading,
  17. Widget? trailing,
  18. TextStyle? textStyle,
  19. Gradient? gradient,
})

Implementation

MChatTextBubble({
  Key? key,
  required this.text,
  this.constraints,
  this.margin = EdgeInsets.zero,
  this.padding = const EdgeInsets.symmetric(horizontal: 16, vertical: 2),
  this.bubbleRadius,
  this.isSender = true,
  this.color,
  this.tail = true,
  this.sent = false,
  this.delivered = false,
  this.seen = false,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.leading,
  this.trailing,
  this.textStyle,
  this.gradient,
}) : super(key: key);