CameraGuard constructor
CameraGuard({
- required String cameraPermissionPath,
- CameraPersistenceDelegate? persistenceDelegate,
Creates a CameraGuard instance.
The cameraPermissionPath is used for redirecting
when the camera permission is not granted.
A guard that checks if the camera permission is granted.
If not, it redirects to the cameraPermissionPath.
Implementation
CameraGuard({
required this.cameraPermissionPath,
CameraPersistenceDelegate? persistenceDelegate,
}) : super(
persistenceDelegate:
persistenceDelegate ?? CameraPersistenceDelegate(),
);