init
This commit is contained in:
11
lib/app/sync/backend_event_sync.dart
Normal file
11
lib/app/sync/backend_event_sync.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user