parse static method

SemVer parse(
  1. String source
)
override

Creates a Version instance from a string.

The string must conform to the specification at http://semver.org/ Throws FormatException if the string is empty or does not conform to the spec.

Implementation

static SemVer parse(String source) =>
    SemVer._fromSuper(Version.parse(source));