parsePlatformVersion function

Version parsePlatformVersion(
  1. String text
)

Parse the text from Platform.version

Implementation

Version parsePlatformVersion(String text) {
  return Version.parse(text.split(' ').first);
}