areAllInitialSyncsCompleted method

  1. @override
Future<bool> areAllInitialSyncsCompleted(
  1. List<String> featureKeys
)
override

Checks if all specified features have completed initial sync. More efficient than checking each feature individually. Returns true only if all features in featureKeys are completed.

Implementation

@override
Future<bool> areAllInitialSyncsCompleted(List<String> featureKeys) async {
  if (featureKeys.isEmpty) return true;

  for (final key in featureKeys) {
    if (!(_initialCompleted[key] ?? false)) {
      return false;
    }
  }
  return true;
}