12 lines
302 B
Dart
12 lines
302 B
Dart
import 'package:riverpod_annotation/riverpod_annotation.dart';
|
|
|
|
import '../../backend/api/commands.dart' as commands;
|
|
import '../../backend/event.dart';
|
|
|
|
part 'backend_event_sync.g.dart';
|
|
|
|
@Riverpod(keepAlive: true)
|
|
Stream<AppEvent> backendEventSync(Ref ref) {
|
|
return commands.createEventStream();
|
|
}
|