Flutter – How to pass Exception in sync riverpod provider?
I have a provider which throws an exception which I want to handle where I read the provider: @Riverpod(dependencies: [firebaseAuth]) User currentUser(CurrentUserRef ref) { final user = ref.watch(firebaseAuthProvider).currentUser; if (user == null) { throw UserNotSignedInException(); } return user; } and…