StacCache class

Model representing a cached screen from Stac Cloud.

This model stores the screen data along with metadata for caching purposes.

Annotations
  • @JsonSerializable.new()

Constructors

StacCache({required String name, required String stacJson, required int version, required DateTime cachedAt})
Creates a StacCache instance.
const
StacCache.fromJson(Map<String, dynamic> json)
Creates a StacCache from a JSON map.
factory
StacCache.fromJsonString(String jsonString)
Creates a StacCache from a JSON string.
factory

Properties

cachedAt → DateTime
The timestamp when this screen was cached.
final
hashCode → int
The hash code for this object.
no setteroverride
name → String
The screen name/route identifier.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stacJson → String
The JSON string containing the Stac widget definition.
final
version → int
The version number of the screen.
final

Methods

copyWith({String? name, String? stacJson, int? version, DateTime? cachedAt}) → StacCache
Creates a copy of this StacCache with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this StacCache to a JSON map.
toJsonString() → String
Converts this StacCache to a JSON string.
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override