GoRouterRefreshStream constructor
- Stream stream
Creates a refresh notifier for FirebaseAuth state changes.
Listens to stream and calls notifyListeners whenever a new
event is emitted (user logs in or out).
Implementation
GoRouterRefreshStream(Stream<dynamic> stream) {
notifyListeners();
_subscription = stream.asBroadcastStream().listen(
(dynamic _) => notifyListeners(),
);
}