setPointOfInterest method

Future<Null> setPointOfInterest(
  1. Offset offset
)

Implementation

Future<Null> setPointOfInterest(Offset offset) async {
  if (!value.isInitialized! || _isDisposed) {
    throw CameraException(
      'Uninitialized CameraController.',
      'takePicture was called on uninitialized CameraController',
    );
  }
  try {
    await _channel.invokeMethod(
      'setPointOfInterest',
      <String, dynamic>{'offsetX': offset.dx, 'offsetY': offset.dy},
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}