hitTestCenter method

Future<List<UArHitResult>> hitTestCenter({
  1. List<UArHitType> types = const <UArHitType>[UArHitType.plane, UArHitType.depth, UArHitType.point, UArHitType.estimated, UArHitType.instant, UArHitType.mesh],
})

Same as hitTest from the middle of the view.

Implementation

Future<List<UArHitResult>> hitTestCenter({
  List<UArHitType> types = const <UArHitType>[UArHitType.plane, UArHitType.depth, UArHitType.point, UArHitType.estimated, UArHitType.instant, UArHitType.mesh],
}) => hitTest(Offset(_viewSize.width / 2, _viewSize.height / 2), types: types);