tdd 진행

This commit is contained in:
2025-08-09 03:09:17 +09:00
parent ed8c7eacba
commit 6033d59590
74 changed files with 17804 additions and 395 deletions
+5
View File
@@ -15,6 +15,11 @@ class EventBus {
_streamController.add(event);
}
// 특정 타입의 이벤트를 구독하는 메서드
Stream<T> on<T>() {
return stream.where((event) => event is T).cast<T>();
}
void dispose() {
_streamController.close();
}