ShortestPathRequest constructor
ShortestPathRequest({ - Kref? sourceKref,
- Kref? targetKref,
- Iterable<String>? edgeTypeFilter,
- int? maxDepth,
- 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;
}