TestReportStep constructor Null safety

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

Implementation

TestReportStep({
  this.endTime,
  this.error,
  required this.id,
  DateTime? startTime,
  required this.step,
  this.subStep = false,
})  : assert(id.isNotEmpty == true),
      startTime = startTime ?? DateTime.now();