Skip to content

Commit ff90e91

Browse files
committed
formatting
1 parent 38c92e2 commit ff90e91

7 files changed

Lines changed: 11 additions & 15 deletions

File tree

packages/devtools_app/lib/src/screens/inspector/inspector_tree_controller.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ class InspectorTreeController extends DisposableController
120120
/// [InspectorTreeController].
121121
final int? gaId;
122122

123-
InspectorTreeNode createNode() =>
124-
InspectorTreeNode();
123+
InspectorTreeNode createNode() => InspectorTreeNode();
125124

126125
SearchTargetType _searchTarget = SearchTargetType.widget;
127126
int _rootSetCount = 0;

packages/devtools_app/lib/src/screens/logging/logging_controller.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,9 @@ class LogData with SearchableDataMixin {
10381038
}
10391039

10401040
try {
1041-
return prettyPrintJson(jsonDecode(details!) as Object?)
1042-
.replaceAll(r'\n', '\n')
1043-
.trim();
1041+
return prettyPrintJson(
1042+
jsonDecode(details!) as Object?,
1043+
).replaceAll(r'\n', '\n').trim();
10441044
} catch (_) {
10451045
return details?.trim();
10461046
}

packages/devtools_app/lib/src/shared/config_specific/post_message/_post_message_web.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import 'post_message.dart';
1212

1313
Stream<PostMessageEvent> get onPostMessage {
1414
return window.onMessage.map(
15-
(message) =>
16-
PostMessageEvent(data: message.data.dartify()),
15+
(message) => PostMessageEvent(data: message.data.dartify()),
1716
);
1817
}
1918

packages/devtools_app/lib/src/shared/console/eval/inspector_tree.dart

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,9 @@ const inspectorRowHeight = 20.0;
3333
/// specific as that is the only case we care about.
3434
// TODO(kenz): extend TreeNode class to share tree logic.
3535
class InspectorTreeNode {
36-
InspectorTreeNode({
37-
this.parent,
38-
bool expandChildren = true,
39-
}) : _children = <InspectorTreeNode>[],
40-
_isExpanded = expandChildren;
36+
InspectorTreeNode({this.parent, bool expandChildren = true})
37+
: _children = <InspectorTreeNode>[],
38+
_isExpanded = expandChildren;
4139

4240
bool get showLinesToChildren {
4341
return _children.length > 1 && !_children.last.isProperty;

packages/devtools_app/lib/src/shared/primitives/trees.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file or at https://developers.google.com/open-source/licenses/bsd.
44

5-
// ignore_for_file: unused-code, retain methods for completeness of TreeNode model class.
5+
// ignore_for_file: unused-code, retain methods for completeness of TreeNode model class.
66

77
import 'dart:collection';
88
import 'dart:math';

packages/devtools_app/lib/src/shared/ui/common_widgets.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ class _JsonViewerState extends State<JsonViewer> {
10461046
if (serviceConnection.serviceManager.connectedState.value.connected) {
10471047
return prettyPrintJson(
10481048
serviceConnection.serviceManager.service!.fakeServiceCache
1049-
.instanceToJson(copiedVariable.value as Instance),
1049+
.instanceToJson(copiedVariable.value as Instance),
10501050
);
10511051
}
10521052

packages/devtools_app/lib/src/shared/ui/icons.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class CustomIconMaker {
8787
}
8888
}
8989

90-
const infoIcon = AssetImageIcon(asset: 'icons/custom/info.png');
90+
const infoIcon = AssetImageIcon(asset: 'icons/custom/info.png');
9191

9292
class ColorIcon extends StatelessWidget {
9393
const ColorIcon(this.color, {super.key});

0 commit comments

Comments
 (0)