ShortestPathResponse constructor

ShortestPathResponse({
  1. Iterable<RevisionPath>? paths,
  2. bool? pathExists,
  3. int? pathLength,
})

Implementation

factory ShortestPathResponse({
  $core.Iterable<RevisionPath>? paths,
  $core.bool? pathExists,
  $core.int? pathLength,
}) {
  final result = create();
  if (paths != null) result.paths.addAll(paths);
  if (pathExists != null) result.pathExists = pathExists;
  if (pathLength != null) result.pathLength = pathLength;
  return result;
}