Event.error constructor

const Event.error({
  1. required int time,
  2. @JsonKey(name: 'testID') required int testId,
  3. required String error,
  4. @JsonKey(name: 'stackTrace') required String stacktrace,
  5. required bool isFailure,
})

Factory constructor for error event

Implementation

const factory Event.error({
  /// The time (in milliseconds) that has elapsed since the test runner started.
  required int time,

  /// The ID of the test that experienced the error.
  @JsonKey(name: 'testID') required int testId,

  /// The result of calling toString() on the error object.
  required String error,

  /// The error's stack trace, in the [stack_trace package](https://pub.dev/packages/stack_trace) format.
  @JsonKey(name: 'stackTrace') required String stacktrace,

  /// Whether the error was a `TestFailure`.
  required bool isFailure,
}) = _Error;