register method
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),
),
);
}