ControlledTransport constructor

ControlledTransport(
  1. Transport inner, {
  2. Sleep sleep = realSleep,
  3. Duration slow = const Duration(milliseconds: 400),
})

Wraps inner. sleep is injected so tests do not wait.

Implementation

ControlledTransport(
  this.inner, {
  this._sleep = realSleep,
  this._slow = const Duration(milliseconds: 400),
});