f655adfbea
Migrate app code into canonical feature slices, add phone-only AI digest scheduling and review, wire local notification/background task support, and cover the flow with tests.
19 lines
458 B
Dart
19 lines
458 B
Dart
import 'dart:async';
|
|
|
|
/// Broadcasts reminder notification tap intents to the UI layer.
|
|
class ReminderNotificationIntentBus {
|
|
final StreamController<String> _controller =
|
|
StreamController<String>.broadcast();
|
|
|
|
Stream<String> get intents => _controller.stream;
|
|
|
|
void emitTap(String reminderId) {
|
|
if (reminderId.trim().isEmpty) {
|
|
return;
|
|
}
|
|
_controller.add(reminderId.trim());
|
|
}
|
|
|
|
Future<void> close() => _controller.close();
|
|
}
|