clear static method

void clear(
  1. String name
)

Clears a tag without exporting.

Useful for canceling a flow that you don't need to analyze, or for cleanup after conditional checks.

Example:

Log.tag('temp', 'Some debug info');
// ... decide you don't need it
Log.clear('temp');

Implementation

static void clear(String name) {
  assert(() {
    _tags.remove(name);
    return true;
  }());
}