Aidra Driver 1.3.5+68
Aidra Driver - Your path to green energy
Loading...
Searching...
No Matches
router_extension.dart
Go to the documentation of this file.
1import 'package:flutter/material.dart';
2import 'package:go_router/go_router.dart';
3
4extension GoRouterExtension on BuildContext {
5 void popUntilPath(String targetPath) {
6 while (canPop()) {
7 final currentPath = GoRouterState.of(this).uri.toString();
8 if (currentPath == targetPath) break;
9 pop();
10 }
11 }
12
13 void popToRoot() {
14 while (canPop()) {
15 pop();
16 }
17 }
18}
class Partner String