toPath method

String toPath()

Implementation

String toPath() {
  final self = this ?? "/";
  return self.startsWith("/") ? self : "/$self";
}