completionEvents property
Stream<void>
get
completionEvents
Get a broadcast stream of sync completion events - when synchronization of incoming changes has completed.
Subscribe (listen) to the stream to actually start listening to events.
Implementation
Stream<void> get completionEvents {
if (_completionEvents == null) {
_completionEvents = _SyncListenerGroup<void>('sync-completion');
_completionEvents!.add(_SyncListenerConfig(
(int nativePort) => C.dartc_sync_listener_complete(_ptr, nativePort),
(dynamic _, controller) => controller.add(null)));
_completionEvents!.finish();
}
return _completionEvents!.stream;
}