fxCanAccessCamera function

Future<bool> fxCanAccessCamera()

Implementation

Future<bool> fxCanAccessCamera() async {
  await Permission.camera.request();
  PermissionStatus cameraPermission = await Permission.camera.status;

  if (cameraPermission == PermissionStatus.granted) {
    return true;
  }

  return false;
}