setFocusMode method

Future<void> setFocusMode(
  1. FocusMode mode
)

Implementation

Future<void> setFocusMode(FocusMode mode) async {
  if (!_initialized) return;

  try {
    await _controller.setFocusMode(mode);
  } on CameraException catch (e) {
    _uiHandler.showExceptionSnackbar(e);
    rethrow;
  }
}