pub_update_checker 1.2.1 pub_update_checker: ^1.2.1 copied to clipboard
Check if your dart script package is up to date in one line.
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');
}
}