NyRouter constructor

NyRouter({
  1. NyRouterOptions options = const NyRouterOptions(),
})

Implementation

NyRouter({
  this.options = const NyRouterOptions(),
}) {
  if (options.navigatorKey != null) {
    _navigatorKey = options.navigatorKey;
  } else {
    _navigatorKey = GlobalKey<NavigatorState>();
  }
}