addDefaultStackFilter method Null safety

void addDefaultStackFilter(
  1. StackFilter filter
)

Adds a stack filtering function to defaultStackFilter.

For example, the framework adds common patterns of element building to elide tree-walking patterns in the stacktrace.

Added filters are checked in order of addition. The first matching filter wins, and subsequent filters will not be checked.

Implementation

static void addDefaultStackFilter(StackFilter filter) {
  _stackFilters.add(filter);
}