Commit 4dc19e3f authored by Devon Carew's avatar Devon Carew

Merge pull request #1479 from devoncarew/strong_mode_issues

fix two strong mode issues
parents 5af87aaf e1a7d7d8
......@@ -123,7 +123,9 @@ class _SemanticsDebuggerEntry {
int findDepth() {
if (children == null || children.isEmpty)
return 1;
return children.map((_SemanticsDebuggerEntry e) => e.findDepth()).reduce(math.max) + 1;
return children.map((_SemanticsDebuggerEntry e) => e.findDepth()).reduce((int runningDepth, int nextDepth) {
return math.max(runningDepth, nextDepth);
}) + 1;
}
static const TextStyle textStyles = const TextStyle(
......
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