pathize method

String pathize()

Converts a string into a path name.

Implementation

String pathize() {
  if (this == null) {
    throw ArgumentError('string: $this');
  }
  if (this!.isEmpty) {
    return '';
  }
  return this!.underscore().replaceAll('_', '/');
}