GoldenAnimationConfig class Configuration

GoldenAnimationConfig

Configuration class for capturing golden tests of animations.

This class extends GoldenCaptureConfig to provide animation-specific configuration options including timeline settings and frame capture details.

  • testName The name of the test, used to identify the golden file.
  • totalDuration The total duration of the animation to be tested.
  • animationSteps List of specific frames to capture during the animation.
  • showTimelineLabels Whether to display timestamp labels on the combined image.
  • timelineColor Color for the timeline visualization in the golden image.
  • layoutType How to arrange the captured frames (vertical, horizontal, grid).
  • maxScreensPerRow Maximum frames per row when using grid layout.
  • spacing Space between frames in the combined image.
  • device Optional device configuration for consistent rendering.
Inheritance

Constructors

GoldenAnimationConfig({required String testName, required Duration totalDuration, required List<GoldenAnimationStep> animationSteps, bool showTimelineLabels = true, Color timelineColor = Colors.blue, CaptureLayoutType layoutType = CaptureLayoutType.horizontal, int maxScreensPerRow = 5, double spacing = 24.0, WindowConfigData? device})
const

Properties

animationSteps List<GoldenAnimationStep>
final
delayBetweenScreens Duration
finalinherited
device → WindowConfigData?
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Validates that all animation steps are within the total duration.
no setter
layoutType CaptureLayoutType
finalinherited
maxScreensPerRow int
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showTimelineLabels bool
final
sortedSteps List<GoldenAnimationStep>
Gets the animation steps sorted by timestamp.
no setter
spacing double
finalinherited
testName String
finalinherited
timelineColor Color
final
totalDuration Duration
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