getRecentEvents method
Returns an immutable snapshot list of all events currently in the buffer.
Implementation
List<FlightEvent> getRecentEvents() {
if (!_isRecording) return [];
return _ringBuffer.toList();
}
Returns an immutable snapshot list of all events currently in the buffer.
List<FlightEvent> getRecentEvents() {
if (!_isRecording) return [];
return _ringBuffer.toList();
}