NvGoldenMultiple class

The NvGolden class for golden tests with multiple instances of the tested Scenario(s) in a single file.

Inheritance

Constructors

NvGoldenMultiple.devices({required List<Screen> deviceSizes, BoxDecoration? decoration, required Widget wrap(Widget child)?, Widget wrapScenario(Widget child)?})
Constructor for device tests
NvGoldenMultiple.grid({required int nrColumns, Screen? screen, required Widget wrap(Widget child)?, Widget wrapScenario(Widget child)?, BoxDecoration? decoration})
Constructor for grid tests

Properties

decoration BoxDecoration?
final
hashCode int
The hash code for this object.
no setterinherited
nrColumns int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Calculate the size for the whole golden file
no setteroverride
widget Widget
Expose the widget for the golden builder files.
no setteroverride
wrap → (Widget Function(Widget child)?)
finalinherited
wrapScenario → (Widget Function(Widget child)?)
final

Methods

addScenario({required String name, required Widget widget, Screen? screen}) → void
Add a golden test scenario
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