userStream function

  1. @riverpod
Stream<User?> userStream(
  1. dynamic ref
)

Implementation

@riverpod
Stream<User?> userStream(UserStreamRef ref) {
// Stream<User?> userStream(UserStreamRef ref) async* {
  final authServiceNotifier = ref.watch(firebaseAuthServiceProvider().notifier);
  return authServiceNotifier.userChanges();
  // yield* authServiceNotifier.userChanges();
}