copyWith method

TestReportStep copyWith({
  1. DateTime? endTime,
  2. String? error,
  3. Map<String, dynamic>? step,
  4. DateTime? startTime,
  5. bool? subStep,
})

Copies the report entry with the given values.

Implementation

TestReportStep copyWith({
  DateTime? endTime,
  String? error,
  Map<String, dynamic>? step,
  DateTime? startTime,
  bool? subStep,
}) =>
    TestReportStep(
      endTime: endTime ?? this.endTime,
      error: error ?? this.error,
      id: id,
      startTime: startTime ?? this.startTime,
      step: step ?? this.step,
      subStep: subStep ?? this.subStep,
    );