Test constructor
Test({})
Constructs the test.
Implementation
Test({
this.active = true,
this.name,
int? pinnedStepIndex,
List<TestStep>? steps,
this.suiteName,
DateTime? timestamp,
this.version = 0,
}) : steps = steps == null ? <TestStep>[] : List<TestStep>.from(steps),
timestamp = timestamp ?? DateTime.now() {
this.pinnedStepIndex =
min(pinnedStepIndex ?? this.steps.length - 1, this.steps.length - 1);
}