waitForFirstSync method
Returns a Future which will resolve once the first full sync has completed.
Implementation
Future<void> waitForFirstSync() async {
if (currentStatus.hasSynced ?? false) {
return;
}
await for (final result in statusStream) {
if (result.hasSynced ?? false) {
break;
}
}
}