dd static method

void dd(
  1. dynamic message,
  2. String? tag
)

Dumps a message (with optional tag) to the console, then exits the app.

The exit is skipped on web, where dart:io's exit() is unavailable and would throw UnsupportedError. On web this behaves like dump.

Implementation

static void dd(dynamic message, String? tag) {
  dump(message, tag);
  if (kIsWeb) return;
  exit(0);
}