Example #1
0
        protected override bool hitTestChildren(BoxHitTestResult result, Offset position = null)
        {
            if (_foregroundPainter != null && ((_foregroundPainter.hitTest(position)) ?? false))
            {
                return(true);
            }

            return(base.hitTestChildren(result, position: position));
        }
Example #2
0
 protected override bool hitTestSelf(Offset position)
 {
     return(_painter != null && (_painter.hitTest(position) ?? true));
 }