ComBannerOptions constructor

const ComBannerOptions({
  1. Object? queueKey,
  2. ComBannerQueuePolicy queuePolicy = ComBannerQueuePolicy.enqueue,
  3. bool dismissOnTap = true,
  4. bool swipeDismissible = true,
  5. bool pauseOnInteraction = true,
  6. Duration exitDuration = const Duration(milliseconds: 220),
  7. Duration reboundDuration = const Duration(milliseconds: 180),
  8. double swipeThreshold = 0.25,
  9. 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);