Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Jonny Borges
2023-02-20 11:24:36 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
26f160a52d87fc139fd4d00a9559985f8d973715
26f160a5
1 parent
41803e45
remove unused function
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
lib/get_navigation/src/routes/parse_route.dart
lib/get_navigation/src/routes/parse_route.dart
View file @
26f160a
...
...
@@ -174,22 +174,6 @@ class ParseRouteTree {
}
}
void
handleChild
(
GetPage
route
)
{
final
children
=
route
.
children
;
for
(
var
child
in
children
)
{
final
middlewares
=
List
.
of
(
route
.
middlewares
);
final
bindings
=
List
.
of
(
route
.
bindings
);
middlewares
.
addAll
(
child
.
middlewares
);
bindings
.
addAll
(
child
.
bindings
);
child
=
child
.
copyWith
(
middlewares:
middlewares
,
bindings:
bindings
);
if
(
child
.
inheritParentPath
)
{
child
=
child
.
copyWith
(
name:
(
'
${route.path}
/
${child.path}
'
).
replaceAll
(
r'//'
,
'/'
));
}
addRoute
(
child
);
}
}
List
<
GetPage
>
_flattenPage
(
GetPage
route
)
{
final
result
=
<
GetPage
>[];
if
(
route
.
children
.
isEmpty
)
{
...
...
Please
register
or
login
to post a comment