getCameraLensIcon method

IconData getCameraLensIcon(
  1. CameraLensDirection lensDirection
)

Implementation

IconData getCameraLensIcon(CameraLensDirection lensDirection) {
  switch (lensDirection) {
    case CameraLensDirection.back:
      return Icons.camera_rear;
    case CameraLensDirection.front:
      return Icons.camera_front;
    case CameraLensDirection.external:
      return Icons.camera;
  }
  // This enum is from a different package, so a new value could be added at
  // any time. The example should keep working if that happens.
  // ignore: dead_code
  return Icons.camera;
}