fileRef method

String fileRef()

Generate the file reference String to this file.

Implementation

String fileRef() {
  var path = p.posix.joinAll([...subDirParts, '$fileName.dart']);

  // If on Windows, paths could appear with backslashes in the import clause.
  // Normalize to forward slashes.
  return p.split(path).join('/');
}