ShortestPathRequest constructor

ShortestPathRequest({
  1. Kref? sourceKref,
  2. Kref? targetKref,
  3. Iterable<String>? edgeTypeFilter,
  4. int? maxDepth,
  5. bool? allShortest,
})

Implementation

factory ShortestPathRequest({
  Kref? sourceKref,
  Kref? targetKref,
  $core.Iterable<$core.String>? edgeTypeFilter,
  $core.int? maxDepth,
  $core.bool? allShortest,
}) {
  final result = create();
  if (sourceKref != null) result.sourceKref = sourceKref;
  if (targetKref != null) result.targetKref = targetKref;
  if (edgeTypeFilter != null) result.edgeTypeFilter.addAll(edgeTypeFilter);
  if (maxDepth != null) result.maxDepth = maxDepth;
  if (allShortest != null) result.allShortest = allShortest;
  return result;
}