diff --git a/lib/src/nuvigator.dart b/lib/src/nuvigator.dart index aaf3899..44e0764 100644 --- a/lib/src/nuvigator.dart +++ b/lib/src/nuvigator.dart @@ -184,6 +184,10 @@ class NuvigatorState extends NavigatorState return widget.inheritableObservers; } + void addObserver(NavigatorObserver observer) { + widget.observers.add(observer); + } + @override void initState() { parent = Nuvigator.of(context, nullOk: true);