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
de36e511
Unverified
Commit
de36e511
authored
Jul 07, 2021
by
Viren Khatri
Committed by
GitHub
Jul 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass `style` argument to super of `IntProperty` (#85414)
parent
4d9a3753
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletion
+21
-1
diagnostics.dart
packages/flutter/lib/src/foundation/diagnostics.dart
+1
-0
diagnostics_test.dart
packages/flutter/test/foundation/diagnostics_test.dart
+20
-1
No files found.
packages/flutter/lib/src/foundation/diagnostics.dart
View file @
de36e511
...
@@ -2032,6 +2032,7 @@ class IntProperty extends _NumProperty<int> {
...
@@ -2032,6 +2032,7 @@ class IntProperty extends _NumProperty<int> {
showName:
showName
,
showName:
showName
,
unit:
unit
,
unit:
unit
,
defaultValue:
defaultValue
,
defaultValue:
defaultValue
,
style:
style
,
level:
level
,
level:
level
,
);
);
...
...
packages/flutter/test/foundation/diagnostics_test.dart
View file @
de36e511
...
@@ -491,7 +491,8 @@ void main() {
...
@@ -491,7 +491,8 @@ void main() {
' │ │
\n
'
' │ │
\n
'
' │ └─child node B3: TestTree#00000
\n
'
' │ └─child node B3: TestTree#00000
\n
'
' │ <leaf node>
\n
'
' │ <leaf node>
\n
'
' │ foo: 42
\n
'
' │ foo:
\n
'
' │ 42
\n
'
' │
\n
'
' │
\n
'
' └─child node C: TestTree#00000
\n
'
' └─child node C: TestTree#00000
\n
'
' foo:
\n
'
' foo:
\n
'
...
@@ -2280,4 +2281,22 @@ void main() {
...
@@ -2280,4 +2281,22 @@ void main() {
expect
(
json
[
'name'
],
'string2'
);
expect
(
json
[
'name'
],
'string2'
);
expect
(
json
[
'value'
],
'world'
);
expect
(
json
[
'value'
],
'world'
);
});
});
test
(
'IntProperty arguments passed to super'
,
()
{
final
DiagnosticsProperty
<
num
>
property
=
IntProperty
(
'Example'
,
0
,
ifNull:
'is null'
,
showName:
false
,
defaultValue:
1
,
style:
DiagnosticsTreeStyle
.
none
,
level:
DiagnosticLevel
.
off
,
);
expect
(
property
.
value
,
equals
(
0
));
expect
(
property
.
ifNull
,
equals
(
'is null'
));
expect
(
property
.
showName
,
equals
(
false
));
expect
(
property
.
defaultValue
,
equals
(
1
));
expect
(
property
.
style
,
equals
(
DiagnosticsTreeStyle
.
none
));
expect
(
property
.
level
,
equals
(
DiagnosticLevel
.
off
));
});
}
}
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