BubbleBox constructor

BubbleBox({
  1. Key? key,
  2. required Widget child,
  3. Color? backgroundColor,
  4. double? maxWidth,
  5. double? maxHeight,
  6. double? widthFactor,
  7. double? heightFactor,
  8. double elevation = 0.0,
  9. Color? shadowColor,
  10. Gradient? gradient,
  11. BlendMode blendMode = BlendMode.dstATop,
  12. EdgeInsets? margin,
  13. EdgeInsets padding = const EdgeInsets.all(8),
  14. ShapeBorder? shape,
})

Implementation

BubbleBox({
  Key? key,
  required this.child,
  this.backgroundColor,
  this.maxWidth,
  this.maxHeight,
  this.widthFactor,
  this.heightFactor,
  this.elevation = 0.0,
  this.shadowColor,
  this.gradient,
  this.blendMode = BlendMode.dstATop,
  this.margin,
  this.padding = const EdgeInsets.all(8),
  ShapeBorder? shape,
})  : shape = shape ?? BubbleShapeBorder(),
      super(key: key);