Nylo constructor

Nylo({
  1. NyRouter? router,
  2. bool useNyRouteObserver = true,
})

Create a new Nylo instance.

Implementation

Nylo({this.router, bool useNyRouteObserver = true})
    : _appLoader = const CircularProgressIndicator(),
      _appLogo = const SizedBox.shrink() {
  _navigatorObservers.addAll(useNyRouteObserver
      ? [
          NyRouteHistoryObserver(),
        ]
      : []);
}