fbmobile/lib/core/services/refresh_service.dart
2023-01-16 01:44:51 +01:00

14 lines
330 B
Dart

import 'dart:async';
import '../enums/refresh_event.dart';
class RefreshService {
StreamController<RefreshEvent> refreshEventController =
StreamController<RefreshEvent>.broadcast();
void addEvent(RefreshEvent event) {
if (refreshEventController.hasListener) {
refreshEventController.add(event);
}
}
}