PublishComponentInfo class final

What a publish model knows of one published component without loading it: its version and digest (a cached copy with another digest is stale), when it was published and the fonts its text uses (loaded with the screens that call it).

Annotations
  • @immutable

Constructors

PublishComponentInfo({required String id, int version = 0, String digest = '', DateTime? lastUpdated, List<String> fonts = const []})
const
PublishComponentInfo.of(PublishComponent component)
The entry listing component.
factory

Properties

digest → String
The sha256 hex of its document's canonicalJson.
final
fonts → List<String>
Ids of the fonts its own text uses (PublishModel.fonts).
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
The component's type name (PlanCard).
final
lastUpdated → DateTime?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version → int
Its publish count: raised by every publish that changed it.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromJson(Object? json, {String? id}) → PublishComponentInfo?