protected override bool hitTestChildren(BoxHitTestResult result, Offset position = null) { if (_foregroundPainter != null && ((_foregroundPainter.hitTest(position)) ?? false)) { return(true); } return(base.hitTestChildren(result, position: position)); }
protected override bool hitTestSelf(Offset position) { return(_painter != null && (_painter.hitTest(position) ?? true)); }