SchemaCacheStore class

Owns the read-parse-revalidate cycle for the panel document, so RestResourceDataSource stays thin.

Three parties must agree here: the server's ETag, the cached bytes, and the parsed model. A write to FilamentSchemaCache always carries the document exactly as decoded off the wire together with the ETag that describes those same bytes, in one CachedSchema — never two separate calls — so a cache entry can never claim an ETag for a document it does not hold.

Constructors

SchemaCacheStore({required FilamentTransport transport, required String path, FilamentSchemaCache? cache, String? cacheKey})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cachedPanel() Future<PanelSchema?>
The cached panel, if there is a usable one — parsed, never rendered from bytes this build cannot read. Touches storage only, never the network.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
panel() Future<PanelSchema>
Fetches the panel. Uses a conditional GET and the cache when both are configured; otherwise this is exactly today's plain get().
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited