parsePlatformVersion function Null safety

Version parsePlatformVersion(
  1. String text
)

Implementation

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