Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
2cdef81e
Unverified
Commit
2cdef81e
authored
Jan 20, 2022
by
Sam Rawlins
Committed by
GitHub
Jan 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use strict-raw-types analysis instead of no-implicit-dynamic (#96296)
parent
ee6a693c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
analysis_options.yaml
analysis_options.yaml
+2
-1
navigator.dart
packages/flutter/lib/src/widgets/navigator.dart
+3
-3
No files found.
analysis_options.yaml
View file @
2cdef81e
...
...
@@ -19,9 +19,10 @@
# Android Studio, and the `flutter analyze` command.
analyzer
:
language
:
strict-raw-types
:
true
strong-mode
:
implicit-casts
:
false
implicit-dynamic
:
false
errors
:
# treat missing required parameters as a warning (not a hint)
missing_required_param
:
warning
...
...
packages/flutter/lib/src/widgets/navigator.dart
View file @
2cdef81e
...
...
@@ -5166,7 +5166,7 @@ abstract class _RestorationInformation {
required
int
restorationScopeId
,
})
=
_NamedRestorationInformation
;
factory
_RestorationInformation
.
anonymous
({
required
RestorableRouteBuilder
routeBuilder
,
required
RestorableRouteBuilder
<
Object
?>
routeBuilder
,
required
Object
?
arguments
,
required
int
restorationScopeId
,
})
=
_AnonymousRestorationInformation
;
...
...
@@ -5265,7 +5265,7 @@ class _AnonymousRestorationInformation extends _RestorationInformation {
factory
_AnonymousRestorationInformation
.
fromSerializableData
(
List
<
Object
?>
data
)
{
assert
(
data
.
length
>
1
);
final
RestorableRouteBuilder
routeBuilder
=
ui
.
PluginUtilities
.
getCallbackFromHandle
(
ui
.
CallbackHandle
.
fromRawHandle
(
data
[
1
]!
as
int
))!
as
RestorableRouteBuilder
;
final
RestorableRouteBuilder
<
Object
?>
routeBuilder
=
ui
.
PluginUtilities
.
getCallbackFromHandle
(
ui
.
CallbackHandle
.
fromRawHandle
(
data
[
1
]!
as
int
))!
as
RestorableRouteBuilder
;
return
_AnonymousRestorationInformation
(
restorationScopeId:
data
[
0
]!
as
int
,
routeBuilder:
routeBuilder
,
...
...
@@ -5292,7 +5292,7 @@ class _AnonymousRestorationInformation extends _RestorationInformation {
@override
final
int
restorationScopeId
;
final
RestorableRouteBuilder
routeBuilder
;
final
RestorableRouteBuilder
<
Object
?>
routeBuilder
;
final
Object
?
arguments
;
@override
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment