Address Pull Request feedback
(optional param default value + newlines)
This commit is contained in:
parent
dde3dd9121
commit
38bc97b6e6
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user