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
2021-03-04 12:27:08 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
28a78ffc0008168620c1f2cbb6a9f8ce59a53fd0
28a78ffc
1 parent
cb36fcd2
bump to 4.0.0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
CHANGELOG.md
lib/get_navigation/src/root/parse_route.dart
pubspec.yaml
CHANGELOG.md
View file @
28a78ff
## [4.0.0-nullsafety.0]
-
Migrate to null-safety
-
Added ScrollMixin to controllers
-
Added loadingMore status to RxStatus
-
Breaking: It is not possible to initialize Rx with null values.
## [3.25.6]
-
Added documentation in French (@kamazoun)
-
Fix logs messages (@damphat)
...
...
lib/get_navigation/src/root/parse_route.dart
View file @
28a78ff
import
'package:collection/collection.dart'
show
IterableExtension
;
import
'../../../get_core/src/get_main.dart'
;
import
'../../get_navigation.dart'
;
import
'../routes/get_route.dart'
;
...
...
@@ -106,3 +104,13 @@ class ParseRouteTree {
return
params
;
}
}
extension
FirstWhereExt
<
T
>
on
List
<
T
>
{
/// The first element satisfying [test], or `null` if there are none.
T
?
firstWhereOrNull
(
bool
Function
(
T
element
)
test
)
{
for
(
var
element
in
this
)
{
if
(
test
(
element
))
return
element
;
}
return
null
;
}
}
...
...
pubspec.yaml
View file @
28a78ff
...
...
@@ -11,7 +11,7 @@ dependencies:
sdk
:
flutter
dev_dependencies
:
integration
_test
:
flutter
_test
:
sdk
:
flutter
...
...
Please
register
or
login
to post a comment