Revert "Merge pull request #2639 from Hixie/always_specify_types"
This reverts commitf41b3411da, reversing changes made toe33d8d9621. This was a bad check-in due to my mangling uploading a new version of the branch from a different machine. This reverts https://github.com/flutter/flutter/pull/2639 and will be replaced by https://github.com/flutter/flutter/pull/2640
This commit is contained in:
@@ -72,10 +72,7 @@ class Instrumentation {
|
||||
/// element.
|
||||
Element findText(String text) {
|
||||
return findElement((Element element) {
|
||||
if (element.widget is! Text)
|
||||
return false;
|
||||
Text textWidget = element.widget;
|
||||
return textWidget.data == text;
|
||||
return element.widget is Text && element.widget.data == text;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user