ComparisonFrames enum

Where the frames a report names actually are.

The one thing that separates the two files both called index.json, and the reason it is written down rather than guessed at from whether a path looks absolute. A reader that guesses wrong hands back paths that do not exist, which is worse than refusing.

Inheritance
Available extensions

Values

relative → const ComparisonFrames

Relative to the directory holding the index.json — what --export and --report= write, and the only portable form: the frames beside it are PNGs, and the whole directory can be uploaded and read anywhere.

Says how the frames it did write are named, not that it wrote one for every reference. An export encodes what the shot cache still held, and a frame evicted before it ran keeps its original reference — which is why ComparisonReport.frame answers with null rather than a path.

local → const ComparisonFrames

This machine only. A preview's frames are ShotCache keys, computed from a closure fingerprint nothing outside the runner reproduces; a scenario step's are absolute paths to headerless raw frames under ~/.flutterware. Neither survives leaving the machine, so ComparisonReport.frame refuses rather than pretending.

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

values → const List<ComparisonFrames>
A constant List of the values in this enum, in order of their declaration.