SnapshotPump constructor
SnapshotPump({
- required UiSnapshot? captureSnapshot(),
- required SendPayload send,
- void onCaptured(
- UiSnapshot snapshot
- bool canTransmit(
- UiSnapshot snapshot
- Map<
String, Object?> envelope()?, - Duration debounce = const Duration(milliseconds: 500),
- Duration maxWait = const Duration(seconds: 2),
- 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;
}