nextCameraDescription property

CameraDescription get nextCameraDescription

Obtain the next camera description for semantics.

Implementation

CameraDescription get nextCameraDescription {
  final int nextIndex = currentCameraIndex + 1;
  if (nextIndex == cameras.length) {
    return cameras[0];
  }
  return cameras[nextIndex];
}