convertPathToOrgDartlangSdk method

String? convertPathToOrgDartlangSdk(
  1. String input
)

Converts a file path inside the current SDK root into a URI in the form org-dartlang-sdk:///sdk/lib/collection/hash_set.dart.

Implementation

String? convertPathToOrgDartlangSdk(String input) {
  // TODO(dantup): Remove this once Flutter code has been updated to
  //  use convertUriToOrgDartlangSdk.
  return convertUriToOrgDartlangSdk(Uri.file(input))?.toFilePath();
}