BubbleOptions constructor

BubbleOptions({
  1. String? bubbleIcon,
  2. String? closeIcon,
  3. double startLocationX = 0,
  4. double startLocationY = 200,
  5. double bubbleSize = 60,
  6. double opacity = 1,
  7. bool enableClose = true,
  8. CloseBehavior closeBehavior = CloseBehavior.following,
  9. double distanceToClose = 100,
  10. bool enableAnimateToEdge = true,
  11. bool enableBottomShadow = true,
  12. bool keepAliveWhenAppExit = false,
})

Implementation

BubbleOptions({
  this.bubbleIcon,
  this.closeIcon,
  this.startLocationX = 0,
  this.startLocationY = 200,
  this.bubbleSize = 60,
  this.opacity = 1,
  this.enableClose = true,
  this.closeBehavior = CloseBehavior.following,
  this.distanceToClose = 100,
  this.enableAnimateToEdge = true,
  this.enableBottomShadow = true,
  this.keepAliveWhenAppExit = false,
})  : assert(
        bubbleSize >= 0,
        'bubbleSize must be greater than or equal to 0',
      ),
      assert(
        opacity >= 0 && opacity <= 1,
        'opacity must be between 0 and 1',
      );