compile method

Future<ProcessResult> compile({
  1. required String file,
  2. required String outFile,
})

Implementation

Future<ProcessResult> compile({
  required String file,
  required String outFile,
}) async {
  final process = Process.run('dart', [
    'compile',
    'exe',
    file,
    '-o',
    outFile,
  ]);

  return process;
}