BubbleOptions constructor
BubbleOptions({
- String? bubbleIcon,
- String? closeIcon,
- double startLocationX = 0,
- double startLocationY = 200,
- double bubbleSize = 60,
- double opacity = 1,
- bool enableClose = true,
- CloseBehavior closeBehavior = CloseBehavior.following,
- double distanceToClose = 100,
- bool enableAnimateToEdge = true,
- bool enableBottomShadow = true,
- 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',
);