checkAndStartCapturing method
Implementation
Future<void> checkAndStartCapturing() async {
ScreenCapture().startCapturing();
// var status = await Permission.storage.status;
// if (!status.isGranted) {
// await Permission.storage.request();
// status = await Permission.storage.status;
// }
//
// if (status.isGranted) {
// ScreenCapture().startCapturing();
// } else {
// // Handle the case where the user did not grant permissions
// debugPrint('Storage permission not granted');
// }
}