BubbleBox constructor

BubbleBox({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. BoxConstraints? constraints,
  5. Color color = Colors.blue,
  6. Radius radius = Radius.zero,
  7. EdgeInsetsGeometry? padding,
  8. ArrowDirection arrowDirection = ArrowDirection.left,
  9. ArrowAlignment arrowAlignment = ArrowAlignment.start,
  10. double arrowSize = 6,
  11. double arrowOffset = 0,
  12. double elevation = 0,
  13. required Widget child,
})

Implementation

BubbleBox({
  Key? key,
  double? width,
  double? height,
  BoxConstraints? constraints,
  this.color = Colors.blue,
  this.radius = Radius.zero,
  this.padding,
  this.arrowDirection = ArrowDirection.left,
  this.arrowAlignment = ArrowAlignment.start,
  this.arrowSize = 6,
  this.arrowOffset = 0,
  this.elevation = 0,
  required this.child,
})  : assert(constraints == null || constraints.debugAssertIsValid()),
      constraints = (width != null || height != null)
          ? constraints?.tighten(width: width, height: height) ??
              BoxConstraints.tightFor(width: width, height: height)
          : constraints,
      super(key: key);