Closed
Description
Pub users want to be able to run their executables via pub run
using Dart 2 preview mode (see dart-lang/pub#1807 and flutter/flutter#14728 (comment)). Because pub run
runs executables in isolates, this means it'll need to be able to spawn an isolate that uses Dart 2 preview mode.
I suggest adding a bool previewDart2
flag to Isolate.spawnUri()
that will become a deprecated no-op once Dart 2 releases.