FloatyActionRouter.overlay constructor

FloatyActionRouter.overlay({
  1. int maxQueueSize = 100,
  2. QueueOverflowStrategy overflowStrategy = QueueOverflowStrategy.dropOldest,
})

Creates an action router for the overlay side.

When the main app is disconnected, dispatched actions are queued (up to maxQueueSize) and flushed when the connection is restored.

Implementation

FloatyActionRouter.overlay({
  this.maxQueueSize = 100,
  this.overflowStrategy = QueueOverflowStrategy.dropOldest,
}) : _isOverlay = true {
  _init();
}