ManagedSnapshot class final

What a publish recorded of one managed instance in a layout (PublishLayout.extra.managed, by the instance's top node id): the version its nodes (the snapshot) were built from.

JSON: {"id": "sign_in", "version": 3, "semver": "1.1.0", "channel": "stable", "pin": 3, "digest": "…"}.

Annotations
  • @immutable

Constructors

ManagedSnapshot({required String id, required int version, String semver = '', ManagedChannel channel = ManagedChannel.stable, int? pin, String digest = ''})
const

Properties

channel → ManagedChannel
final
digest → String
final
hashCode → int
The hash code for this object.
no setteroverride
id → String
final
pin → int?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semver → String
final
version → int
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.
inherited

Operators

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

Static Methods

fromJson(Object? json) → ManagedSnapshot?
of(Node top) → ManagedSnapshot?
top's snapshot, or null when it isn't a managed instance.