pathOfSnapshot method
The location of the snapshot of the dart program at executable
will be stored here.
We use the sdk version to make sure we don't run snapshots from a different sdk.
Implementation
String pathOfSnapshot(Executable executable) {
return isCachedGlobal
? executable.pathOfGlobalSnapshot(workspaceRoot.dir)
: executable.pathOfSnapshot(workspaceRoot.dir);
}