dartVersion property

String? get dartVersion

The version of the Dart SDK it ships (bin/cache/dart-sdk/version); null when it can't be read.

Implementation

String? get dartVersion => _firstWord('$root/bin/cache/dart-sdk/version');