version method

String version ({bool quiet: false })

Implementation

static String version({bool quiet: false}) {
  // TODO: We may want to run `dart --version` in order to know the version
  // of the SDK that grinder has located.
  // runlib.run(dartVM.path, arguments: ['--version'], quiet: quiet);
  // The stdout does not have a stable documented format, so use the provided
  // metadata instead.
  return Platform.version.substring(0, Platform.version.indexOf(' '));
}