emit static method

void emit({
  1. LeaksEmitter emitter = const .print(),
})

Emits a leak report using the provided emitter.

Defaults to console output. This does not clear the registry.

Implementation

static void emit({LeaksEmitter emitter = const .print()}) =>
    emitter.emit(snapshot);