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
6586a069
Unverified
Commit
6586a069
authored
Mar 03, 2021
by
Michael Goderbauer
Committed by
GitHub
Mar 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable prefer_null_aware_operators (#77105)
parent
8818840a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
7 deletions
+5
-7
analysis_options.yaml
analysis_options.yaml
+1
-1
arena.dart
packages/flutter/lib/src/gestures/arena.dart
+1
-1
dropdown_form_field_test.dart
packages/flutter/test/material/dropdown_form_field_test.dart
+1
-1
dropdown_test.dart
packages/flutter/test/material/dropdown_test.dart
+1
-3
simulators.dart
packages/flutter_tools/lib/src/ios/simulators.dart
+1
-1
No files found.
analysis_options.yaml
View file @
6586a069
...
...
@@ -175,7 +175,7 @@ linter:
-
prefer_is_not_operator
-
prefer_iterable_whereType
# - prefer_mixin # https://github.com/dart-lang/language/issues/32
# - prefer_null_aware_operators # disable until NNBD, see https://github.com/flutter/flutter/pull/32711#issuecomment-492930932
-
prefer_null_aware_operators
# - prefer_relative_imports # not yet tested
-
prefer_single_quotes
-
prefer_spread_collections
...
...
packages/flutter/lib/src/gestures/arena.dart
View file @
6586a069
...
...
@@ -267,7 +267,7 @@ class GestureArenaManager {
bool
_debugLogDiagnostic
(
int
pointer
,
String
message
,
[
_GestureArena
?
state
])
{
assert
(()
{
if
(
debugPrintGestureArenaDiagnostics
)
{
final
int
?
count
=
state
!=
null
?
state
.
members
.
length
:
null
;
final
int
?
count
=
state
?.
members
.
length
;
final
String
s
=
count
!=
1
?
's'
:
''
;
debugPrint
(
'Gesture arena
${pointer.toString().padRight(4)}
❙
$message${ count != null ? " with $count member$s." : ""}
'
);
}
...
...
packages/flutter/test/material/dropdown_form_field_test.dart
View file @
6586a069
...
...
@@ -65,7 +65,7 @@ Widget buildFormFrame({
iconEnabledColor:
iconEnabledColor
,
isDense:
isDense
,
isExpanded:
isExpanded
,
items:
items
==
null
?
null
:
items
.
map
<
DropdownMenuItem
<
String
>>((
String
item
)
{
items:
items
?
.
map
<
DropdownMenuItem
<
String
>>((
String
item
)
{
return
DropdownMenuItem
<
String
>(
key:
ValueKey
<
String
>(
item
),
value:
item
,
...
...
packages/flutter/test/material/dropdown_test.dart
View file @
6586a069
...
...
@@ -54,9 +54,7 @@ Widget buildDropdown({
Color
?
focusColor
,
Color
?
dropdownColor
,
})
{
final
List
<
DropdownMenuItem
<
String
>>?
listItems
=
items
==
null
?
null
:
items
.
map
<
DropdownMenuItem
<
String
>>((
String
item
)
{
final
List
<
DropdownMenuItem
<
String
>>?
listItems
=
items
?.
map
<
DropdownMenuItem
<
String
>>((
String
item
)
{
return
DropdownMenuItem
<
String
>(
key:
ValueKey
<
String
>(
item
),
value:
item
,
...
...
packages/flutter_tools/lib/src/ios/simulators.dart
View file @
6586a069
...
...
@@ -692,7 +692,7 @@ class _IOSSimulatorLogReader extends DeviceLogReader {
onListen:
_start
,
onCancel:
_stop
,
);
_appName
=
app
==
null
?
null
:
app
.
name
.
replaceAll
(
'.app'
,
''
);
_appName
=
app
?.
name
?
.
replaceAll
(
'.app'
,
''
);
}
final
IOSSimulator
device
;
...
...
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