setAutoFocus method

Future<void> setAutoFocus(
  1. bool newValue
)

Implementation

Future<void> setAutoFocus(bool newValue) async {
  value = value.copyWith(autoFocusEnabled: newValue);
  try {
    await _channel.invokeMethod<void>(
      'setAutoFocus',
      <String, dynamic>{'autoFocusValue': newValue},
    );
  } on PlatformException catch (e) {
    throw CameraException(e.code, e.message);
  }
}