NyRouter constructor

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

Implementation

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