pub_update_checker 1.0.0 copy "pub_update_checker: ^1.0.0" to clipboard
pub_update_checker: ^1.0.0 copied to clipboard

outdated

Check if your dart script package is up to date in one line. Uses the pubspec of the package to check the version.

example/example.dart

import 'package:pub_update_checker/pub_update_checker.dart';

void main() async {
  final newVersion = await PubUpdateChecker.check();
  if (newVersion != null) {
    print('There is an update available: $newVersion');
  } else {
    print('No update available');
  }
}
2
likes
0
points
4.92k
downloads

Publisher

verified publisherrexios.dev

Weekly Downloads

Check if your dart script package is up to date in one line. Uses the pubspec of the package to check the version.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

pub_api_client, pub_semver, pubspec

More

Packages that depend on pub_update_checker