diff --git a/lib/src/nuvigator.dart b/lib/src/nuvigator.dart index ababbf1..60f4022 100644 --- a/lib/src/nuvigator.dart +++ b/lib/src/nuvigator.dart @@ -172,6 +172,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);