SnapshotPump constructor

SnapshotPump({
  1. required UiSnapshot? captureSnapshot(),
  2. required SendPayload send,
  3. void onCaptured(
    1. UiSnapshot snapshot
    )?,
  4. bool canTransmit(
    1. UiSnapshot snapshot
    )?,
  5. Map<String, Object?> envelope()?,
  6. Duration debounce = const Duration(milliseconds: 500),
  7. Duration maxWait = const Duration(seconds: 2),
  8. bool watchSemantics = true,
})

Implementation

SnapshotPump({
  required this.captureSnapshot,
  required this.send,
  this.onCaptured,
  this.canTransmit,
  this.envelope,
  this.debounce = const Duration(milliseconds: 500),
  this.maxWait = const Duration(seconds: 2),
  bool watchSemantics = true,
}) {
  _gateHandle = NavigationGate.instance.addConsumer();
  _watchSemantics = watchSemantics;
}