Commit 136b2709 authored by Adam Barth's avatar Adam Barth

Merge pull request #208 from abarth/fix_type

Fix type error found by dartanalyzer --strong
parents 9fd0be56 bb8b9c61
...@@ -585,7 +585,7 @@ abstract class StatefulComponent extends Component { ...@@ -585,7 +585,7 @@ abstract class StatefulComponent extends Component {
return super.syncChild(node, oldNode, slot); return super.syncChild(node, oldNode, slot);
} }
void setState(Function fn()) { void setState(void fn()) {
assert(!_disqualifiedFromEverAppearingAgain); assert(!_disqualifiedFromEverAppearingAgain);
fn(); fn();
scheduleBuild(); scheduleBuild();
......
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