LayerHitNotifier<R extends Object> typedef

LayerHitNotifier<R extends Object> = ValueNotifier<LayerHitResult<R>?>

A ValueNotifier that notifies:

  • a LayerHitResult when a hit is detected on an element in a layer
  • null when a hit is detected on the layer but not on an element

Should be initialised using the following pattern:

final LayerHitNotifier<Object> hitNotifier = ValueNotifier(null);

Implementation

typedef LayerHitNotifier<R extends Object> = ValueNotifier<LayerHitResult<R>?>;