spawnDartFile method

Future<SpawnedIsolate> spawnDartFile(
  1. File dartFile,
  2. List<String> args, {
  3. String? debugName,
  4. bool enableObservatory = false,
  5. bool runObservatory = false,
  6. bool usesSpawnedMain = false,
})

Spawn a Dart File.

Implementation

Future<SpawnedIsolate> spawnDartFile(File dartFile, List<String> args,
        {String? debugName,
        bool enableObservatory = false,
        bool runObservatory = false,
        bool usesSpawnedMain = false}) =>
    _spawnDart(dartFile, 'File', dartFile.uri, args,
        debugName: debugName,
        enableObservatory: enableObservatory,
        runObservatory: runObservatory,
        usesSpawnedMain: usesSpawnedMain);