validateAllEntriesVersion method

({List<String> failedIds, bool res}) validateAllEntriesVersion()

Implementation

({bool res, List<String> failedIds}) validateAllEntriesVersion() {
  List<String> failedIds = <String>[];
  for (int i = 0; i < _storedFinalizedMatches.length; i++) {
    if (_storedFinalizedMatches.getAt(i)!.telemetryVersion !=
        EPHEMERAL_MODELS_VERSION) {
      failedIds.add(_storedFinalizedMatches.getAt(i)!.id);
    }
  }
  return (res: failedIds.isEmpty, failedIds: failedIds);
}