RenderProxyBoxWithHitTestBehavior constructor Null safety

RenderProxyBoxWithHitTestBehavior(
  1. {HitTestBehavior behavior,
  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);