version property
String?
version
returns the version of dart.
Implementation
String? get version {
if (_version == null) {
/// extract the version out of the dumped line.
final regx = RegExp(r'[0-9]*\.[0-9]*\.[0-9]*');
final parsed = regx.firstMatch(Platform.version);
if (parsed != null) {
_version = parsed.group(0);
}
Settings().verbose('Dart SDK Version $_version');
}
return _version;
}