CacheableReader class final
Reads all cache data from disk.
This class mirrors the writer hierarchy but for the read path. It loads all cached metadata and converts it into usable forms.
- Inheritance
-
- Object
- CacheableWriter
- CacheableReader
Constructors
- CacheableReader(Directory projectRoot)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- projectRoot → Directory
-
The project root directory.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadAnnotatedMethods(
{bool forTests = false}) → Future< List< AnnotatedMethodEntry> > -
Loads cached annotated method entries from the JSON file.
inherited
-
loadAssets(
{bool forTests = false}) → Future< List< Asset> > -
Loads cached assets from the JSON file.
inherited
-
loadPackages(
{bool forTests = false}) → Future< List< Package> > -
Loads cached packages from the JSON file.
inherited
-
loadRuntimeHints(
{bool forTests = false}) → Future< List< RuntimeHintEntry> > -
Loads cached runtime hint entries from the JSON file.
inherited
-
loadSubClasses(
{bool forTests = false}) → Future< List< SubClassEntry> > -
Loads cached subclass entries from the JSON file.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepareAnnotatedMethods(
List< ClassDeclaration> components) → List<AnnotatedMethodEntry> -
Prepares annotated method entries by scanning declarations.
inherited
-
prepareAssets(
{required String packageName, bool skipTests = false}) → Future< List< Asset> > -
Prepares assets for caching by scanning the filesystem.
inherited
-
preparePackages(
) → Future< List< Package> > -
Prepares packages for caching by reading pubspec.yaml and package_config.json.
inherited
-
prepareRuntimeHints(
List< ClassDeclaration> components) → List<RuntimeHintEntry> -
Prepares runtime hint entries by scanning declarations.
inherited
-
prepareSubClasses(
List< ClassDeclaration> components) → List<SubClassEntry> -
Prepares subclass entries by computing the graph from declarations.
inherited
-
readAll(
{bool forTests = false}) → Future< CacheReadResult?> - Reads all cached data and returns a CacheReadResult.
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
{required String fingerprint, bool forTests = false}) → Future< CacheSummary> -
Writes all cache data to disk and returns a summary.
inherited
-
writeWithComponents(
{required List< ClassDeclaration> components, required String fingerprint, bool forTests = false}) → Future<CacheSummary> -
Writes components to binary cache and returns the full summary.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited