view<T extends AppRoute> method
Implementation
void view<T extends AppRoute>(String path, ViewBuilder<T> onBuild, {
GuardFunction<T>? onGuard,
}) {
routes.view<T>(path, onBuild, onGuard: (state) {
this.onGuard(state);
onGuard?.call(state);
});
}