Last active
January 27, 2016 00:46
-
-
Save sethladd/9a00172c4fb0b94711e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sayHi() { | |
print('hi'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:foo/foo.dart'; | |
main() { | |
print('hello from loadme'); | |
sayHi(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'dart:isolate'; | |
main() { | |
var weAreHereUri = Platform.script.resolve("."); | |
var packageConfig = "foo:${weAreHereUri.toString()}foo/"; | |
var dataUri = new Uri.dataFromString(packageConfig); | |
print(dataUri); | |
Isolate.spawnUri(new Uri.file('loadme.dart'), [], null, packageConfig: dataUri); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment