Refactor SemanticsData and SemanticsNode to use Diagnosticable. (#11957)

* Refactor SemanticsData and SemanticsNode to use Diagnosticable.

* Switch toStringDeep to take named parameters.
This commit is contained in:
Jacob Richman
2017-09-11 09:25:58 -07:00
committed by GitHub
parent ff90ba5b3a
commit 0229711ba1
10 changed files with 247 additions and 98 deletions

View File

@@ -26,7 +26,7 @@ class _MockToStringDeep {
/// line break.
List<String> _lines;
String toStringDeep([String prefixLineOne="", String prefixOtherLines=""]) {
String toStringDeep({ String prefixLineOne: "", String prefixOtherLines: "" }) {
final StringBuffer sb = new StringBuffer();
if (_lines.isNotEmpty)
sb.write('$prefixLineOne${_lines.first}');