run method

int run({
  1. List<String> args = const <String>[],
})

Runs the dart script with an optional set of args.

args is a list of command line arguments which will be passed to the scsript.

Returns the processes exit code.

Implementation

int run({List<String> args = const <String>[]}) {
  final sdk = DartSdk();

  final runner = ScriptRunner(sdk, this, args);

  return runner.run();
}