ComBannerOptions constructor
const
ComBannerOptions({
- Object? queueKey,
- ComBannerQueuePolicy queuePolicy = ComBannerQueuePolicy.enqueue,
- bool dismissOnTap = true,
- bool swipeDismissible = true,
- bool pauseOnInteraction = true,
- Duration exitDuration = const Duration(milliseconds: 220),
- Duration reboundDuration = const Duration(milliseconds: 180),
- double swipeThreshold = 0.25,
- double swipeVelocity = 700,
Implementation
const ComBannerOptions({
this.queueKey,
this.queuePolicy = ComBannerQueuePolicy.enqueue,
this.dismissOnTap = true,
this.swipeDismissible = true,
this.pauseOnInteraction = true,
this.exitDuration = const Duration(milliseconds: 220),
this.reboundDuration = const Duration(milliseconds: 180),
this.swipeThreshold = 0.25,
this.swipeVelocity = 700,
}) : assert(swipeThreshold > 0 && swipeThreshold <= 1),
assert(swipeVelocity >= 0);