toPathName method

String? toPathName()

Implementation

String? toPathName() {
  if (this == null) return null;
  if (!this!.startsWith("/")) {
    return "/$this";
  } else {
    return this;
  }
}