GoldenTestTheme class

A theme that dictates the behavior and appearance of elements created by Alchemist during golden testing. This theme is used to ensure that parts of golden tests controlled by Alchemist are consistent across Flutter SDK versions.

Inheritance

Constructors

GoldenTestTheme.new({required Color backgroundColor, required Color borderColor, required TextStyle nameTextStyle, EdgeInsetsGeometry padding = EdgeInsets.zero})
A theme that dictates the behavior and appearance of elements created by Alchemist during golden testing. This theme is used to ensure that parts of golden tests controlled by Alchemist are consistent across Flutter SDK versions.
GoldenTestTheme.standard()
The standard theme for golden tests, used when no other theme is provided.
factory

Properties

backgroundColor Color
The background color of the golden test.
final
borderColor Color
The border color used to separate scenarios in a GoldenTestGroup.
final
hashCode int
The hash code for this object.
no setterinherited
nameTextStyle TextStyle
The text style that is used to show the name in a GoldenTestScenario
final
padding EdgeInsetsGeometry
The padding that is used to wrap around:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type Object
The extension's type.
no setterinherited

Methods

copyWith({Color? backgroundColor, Color? borderColor, EdgeInsetsGeometry? padding, TextStyle? nameTextStyle}) ThemeExtension<GoldenTestTheme>
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
override
lerp(covariant ThemeExtension<GoldenTestTheme>? other, double t) ThemeExtension<GoldenTestTheme>
Linearly interpolate with another ThemeExtension object.
override
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