copyWith method

Test copyWith(
  1. {bool? active,
  2. String? name,
  3. int? pinnedStepIndex,
  4. List<TestStep>? steps,
  5. String? suiteName,
  6. DateTime? timestamp,
  7. int? version}
)

Copies this test with the given values.

Implementation

Test copyWith({
  bool? active,
  String? name,
  int? pinnedStepIndex,
  List<TestStep>? steps,
  String? suiteName,
  DateTime? timestamp,
  int? version,
}) =>
    Test(
      active: active ?? this.active,
      name: name ?? this.name,
      pinnedStepIndex: pinnedStepIndex ?? this.pinnedStepIndex,
      steps: steps ?? this.steps,
      suiteName: suiteName ?? this.suiteName,
      timestamp: timestamp ?? this.timestamp,
      version: version ?? this.version,
    );