Address Pull Request feedback

(optional param default value + newlines)
This commit is contained in:
Alex Fandrianto 2015-09-03 19:14:22 -07:00
parent dde3dd9121
commit 38bc97b6e6
2 changed files with 3 additions and 1 deletions

View File

@ -674,6 +674,7 @@ class RenderIgnorePointer extends RenderProxyBox {
RenderIgnorePointer({ RenderBox child, bool ignoring: true }) : super(child);
bool ignoring;
bool hitTest(HitTestResult result, { Point position }) {
return ignoring ? false : super.hitTest(result, position: position);
}

View File

@ -899,10 +899,11 @@ class WidgetToRenderBoxAdapter extends LeafRenderObjectWrapper {
// EVENT HANDLING
class IgnorePointer extends OneChildRenderObjectWrapper {
IgnorePointer({ Key key, Widget child, this.ignoring })
IgnorePointer({ Key key, Widget child, this.ignoring: true })
: super(key: key, child: child);
final bool ignoring;
RenderIgnorePointer createNode() => new RenderIgnorePointer(ignoring: ignoring);
RenderIgnorePointer get renderObject => super.renderObject;