getCleanDartVersion method
Implementation
String getCleanDartVersion() {
try {
final fullVersion = getDartVersion();
final versionMatch = RegExp(r'(\d+\.\d+\.\d+)').firstMatch(fullVersion);
return versionMatch?.group(1) ?? fullVersion;
} catch (e) {
return "";
}
}