register method

  1. @override
void register(
  1. ModuleRegistry registry
)
override

Registers the values and bindings owned by this module.

Implementation

@override
void register(ModuleRegistry registry) {
  routerKey.provideFactory(
    registry,
    () => _router ??= AppRouter(
      routes: routes,
      app: _app,
      initialLocation: initialLocation,
      loading: loading,
      notFound: notFound,
      error: error,
      initialState: initialState ?? _app.maybe(routerInitialStateKey),
    ),
  );
}