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