toUrl method

  1. @override
UrlData toUrl()
override

Implementation

@override
UrlData toUrl() {
  final result = UrlData(segments: [value.name]);

  if (next case final next?) {
    return result.followedBy(next.toUrl());
  }

  return result;
}