runAsync method
Future<String>
runAsync(
- String package, {
- List<
String> ? arguments, - RunOptions? runOptions,
- String? script,
Run the given installed Dart application.
Implementation
Future<String> runAsync(String package,
{List<String>? arguments, RunOptions? runOptions, String? script}) {
var scriptArg = script == null ? package : '$package:$script';
final args = ['pub', 'global', 'run', scriptArg];
if (arguments != null) args.addAll(arguments);
return runlib.runAsync(sdkBin('dart'),
arguments: args, runOptions: runOptions);
}