format method

String format()

Formats the version in a human-readable format.

Implementation

String format() => hasMajor() ? "$major.$minor" : "unknown";