bufferWhere method

List<CausalEvent> bufferWhere(
  1. CausalEventType type
)

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();
}