switchCamera static method

void switchCamera(
  1. bool isFrontCamera
)

切换摄像头 @param position 摄像头位置

Implementation

static void switchCamera(bool isFrontCamera) async {
  await _channel
      .invokeMethod("switchCamera", {"isFrontCamera": isFrontCamera});
}