DVPreviewRuntime class final

What the running preview was deployed as, read from its environment.

Constructors

DVPreviewRuntime({required String name, required DVPreviewVisibility visibility, String? linkDigest, String? productionOrigin, Set<String> schedules = const <String>{}})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
linkDigest → String?
SHA-256 of the link token, as lowercase hex.
final
name → String
final
productionOrigin → String?
Where canonical links point. Without it they are removed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedules → Set<String>
Scheduled tasks declared to run in this preview.
final
visibility → DVPreviewVisibility
final

Methods

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

Operators

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

Static Methods

fromEnvironment(Map<String, String> environment) → DVPreviewRuntime?
The preview this process is, or null when it is not one.