BubbleBox constructor
BubbleBox({
- Key? key,
- double? width,
- double? height,
- BoxConstraints? constraints,
- Color color = Colors.blue,
- Radius radius = Radius.zero,
- EdgeInsetsGeometry? padding,
- ArrowDirection arrowDirection = ArrowDirection.left,
- ArrowAlignment arrowAlignment = ArrowAlignment.start,
- double arrowSize = 6,
- double arrowOffset = 0,
- double elevation = 0,
- 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);