lockCaptureOrientation method
Pin the preview's connection orientation. Used today only to lock the preview to portrait so it never appears stretched/rotated.
Implementation
@override
Future<void> lockCaptureOrientation(
int handle,
DeviceOrientation orientation,
) async {
lockCaptureOrientationCalls.add((handle: handle, orientation: orientation));
}