statusDetails function

Future<void> statusDetails({
  1. String? message,
  2. String? trace,
  3. bool? known,
  4. bool? muted,
  5. bool? flaky,
  6. String? actual,
  7. String? expected,
})

Adds status details to the current test.

Implementation

Future<void> statusDetails({
  String? message,
  String? trace,
  bool? known,
  bool? muted,
  bool? flaky,
  String? actual,
  String? expected,
}) {
  return _globalTestRuntime.send(
    RuntimeMessage(
      type: 'metadata',
      data: <String, Object?>{
        'statusDetails': AllureStatusDetails(
          message: message,
          trace: trace,
          known: known,
          muted: muted,
          flaky: flaky,
          actual: actual,
          expected: expected,
        ).toJson(),
      },
    ),
  );
}