bufferWhere method
Returns events filtered by type. Useful for DevTools panels
that show only crash events, only layout events, etc.
Implementation
List<CausalEvent> bufferWhere(CausalEventType type) {
return _buffer.where((e) => e.type == type).toList();
}