flutter_ready library

Classes

CheckCommand
flutter_ready check (SPEC §3.3): reads pubspec.lock, fetches the Flutter Ready data, and prints a report of which plugins block this season's release.
CheckReport
The printable flutter_ready check report and whether it found a blocker (SPEC §3.3: the CLI "exits non-zero when a blocker is found").
LiveCheckResult
One hosted package's outcome from checking it live (CLI live-check task, 2026-09-27): a package the Flutter Ready data doesn't cover at its locked version, checked on the spot against pub.dev.
LockedPackage
One resolved dependency from a pubspec.lock's packages: map.
Replacement
A hand-kept suggestion for a blocked package (SPEC §3.3, open decision 4: hand-curated, never generated).

Constants

defaultDataSource → const String

Functions

buildCheckReport({required List<LockedPackage> lockedPackages, required Snapshot snapshot, required List<Deadline> deadlines, Map<String, List<Replacement>> replacements = const {}, List<LiveCheckResult> liveResults = const []}) → CheckReport
Builds the check report from a parsed lockfile, the Flutter Ready data, and (CLI live-check task, 2026-09-27) the live-check results for any hosted package the data doesn't cover at the locked version. Pure: no IO, no network itself — liveResults is computed beforehand by runLiveChecks — so it can be tested and golden-tested directly (SPEC §5). A package absent from liveResults (e.g. --offline, or a live check that was never attempted) falls back to the old "not checked" message.
parsePubspecLock(String contents) → List<LockedPackage>
Parses a pubspec.lock's packages: map (SPEC §3.3).
parseReplacements(String contents) → Map<String, List<Replacement>>
Parses data/replacements.json: {"<package>": [{"replacement": "…", "note": "…", "source": "…"}]}. Pure, no IO, so an empty or absent file ('{}') parses to an empty map.
runLiveChecks(PubDevClient client, List<LockedPackage> toCheck, Map<String, LockedPackage> lockedByName, {int concurrency = 4, void onProgress(String message)?}) → Future<List<LiveCheckResult>>
Checks every package in toCheck live, at its exact locked LockedPackage.version (CLI live-check task, 2026-09-27): the on-the-spot equivalent of the nightly snapshot, for a plugin the Flutter Ready data doesn't cover. Runs at most concurrency at a time; a single package's failure never aborts the batch. onProgress, if given, is called once per completed package.