getRecentEvents<T extends ModuleEvent> method
Get recent events of a specific type
Implementation
List<T> getRecentEvents<T extends ModuleEvent>({int limit = 10}) {
return _eventHistory.whereType<T>().toList().reversed.take(limit).toList();
}