setFocusMode method

  1. @override
Future<void> setFocusMode(
  1. int cameraId,
  2. FocusMode mode
)

Sets the focus mode for taking pictures.

Implementation

@override
Future<void> setFocusMode(int cameraId, FocusMode mode) => _channel.invokeMethod<void>(
      'setFocusMode',
      <String, dynamic>{
        'cameraId': cameraId,
        'mode': serializeFocusMode(mode),
      },
    );