Commit 2c78c061 authored by Ian Hickson's avatar Ian Hickson

Fix dump debugging tools

parent 7ee1ee31
......@@ -116,8 +116,9 @@ class TextSpan {
buffer.writeln(style.toString(indent));
if (text != null)
buffer.writeln('$indent"$text"');
for (TextSpan child in children)
buffer.writeln(child.toString(indent));
if (children != null)
for (TextSpan child in children)
buffer.writeln(child.toString(indent));
return buffer.toString();
}
......
......@@ -340,7 +340,7 @@ class RawGestureDetectorState extends State<RawGestureDetector> {
if (_recognizers == null) {
description.add('DISPOSED');
} else {
List<String> gestures = _recognizers.values.map/*<String>*/((GestureRecognizer recognizer) => recognizer.toStringShort());
List<String> gestures = _recognizers.values.map/*<String>*/((GestureRecognizer recognizer) => recognizer.toStringShort()).toList();
if (gestures.isEmpty)
gestures.add('<none>');
description.add('gestures: ${gestures.join(", ")}');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment