appendPathSegments method

Uri appendPathSegments(
  1. Iterable<String> segments
)

Returns a new Uri with segments appended to the path.

Implementation

Uri appendPathSegments(Iterable<String> segments) {
  final cleaned = _cleanPathSegments(segments);
  if (cleaned.isEmpty) return this;
  final combined = _normalizedPathSegments(this)..addAll(cleaned);
  return replace(pathSegments: combined);
}