From a3f520e4889fd67f3528c989e1ad6041a4152a90 Mon Sep 17 00:00:00 2001 From: Phil Quitslund Date: Wed, 28 Feb 2018 15:33:56 -0800 Subject: [PATCH] =?UTF-8?q?Add=20=E2=80=98name=E2=80=99s=20to=20widget=20l?= =?UTF-8?q?ocation=20Json.=20(#14993)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/flutter/lib/src/widgets/widget_inspector.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter/lib/src/widgets/widget_inspector.dart b/packages/flutter/lib/src/widgets/widget_inspector.dart index a35abfe47c..5c87b617f1 100644 --- a/packages/flutter/lib/src/widgets/widget_inspector.dart +++ b/packages/flutter/lib/src/widgets/widget_inspector.dart @@ -1101,6 +1101,9 @@ class _Location { 'line': line, 'column': column, }; + if (name != null) { + json['name'] = name; + } if (parameterLocations != null) { json['parameterLocations'] = parameterLocations.map>( (_Location location) => location.toJsonMap()).toList();