startConfiguredGroups method

Future<void> startConfiguredGroups()

Implementation

Future<void> startConfiguredGroups() async {
  for (final entry in config.groups.entries) {
    if (state.group(entry.key).autoSyncEnabled) {
      await startGroup(entry.key, syncOnStart: entry.value.syncOnStart);
    } else if (entry.value.syncOnStart) {
      await syncGroup(entry.key);
    }
  }
}