hitNotifier property

LayerHitNotifier<R>? hitNotifier
final

A notifier to be notified when a hit test occurs on the layer

Notified with a LayerHitResult if any elements are hit, otherwise notified with null.

Hit testing still occurs even if this is null.

See online documentation for more detailed usage instructions. See the example project for an example implementation.

Implementation

final LayerHitNotifier<R>? hitNotifier;