pub_update_checker 1.1.0 pub_update_checker: ^1.1.0 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('your_package_name');
if (newVersion != null) {
print('There is an update available: $newVersion');
} else {
print('No update available');
}
}