version 1.0.0
version: ^1.0.0 copied to clipboard

outdated Dart 2 incompatible

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

version #

A dart library providing a Version object for comparing and incrementing version numbers in compliance with the Semantic Versioning spec at http://semver.org/

Usage #

A simple usage example:

import 'package:version/version.dart';

main() {
  Version currentVersion = new Version(1,0,3);
  Version latestVersion = Version.parse("2.1.0-beta");

  if(latestVersion>currentVersion) {
    print("Update is available");
  }
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

40
likes
0
pub points
96%
popularity

Publisher

dart.ninja

Provides a simple class for parsing and comparing semantic versions as defined by http://semver.org/

Repository (GitHub)
View/report issues

More

Packages that depend on version