fbmobile/lib/core/services/refresh_service.dart

14 lines
330 B
Dart
Raw Normal View History

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