RenderProxyBoxWithHitTestBehavior constructor

RenderProxyBoxWithHitTestBehavior({
  1. HitTestBehavior behavior = HitTestBehavior.deferToChild,
  2. RenderBox? child,
})

Initializes member variables for subclasses.

By default, the behavior is HitTestBehavior.deferToChild.

Implementation

RenderProxyBoxWithHitTestBehavior({
  this.behavior = HitTestBehavior.deferToChild,
  RenderBox? child,
}) : super(child);