globalError function

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

Writes a run-level error entry.

Implementation

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