checkPermissions static method

Future<bool> checkPermissions()

This method checks for the permissions for the camera,microphone and bluetooth Based on this we route the screens.

Implementation

static Future<bool> checkPermissions() async {
  if (await Permission.camera.isGranted &&
      await Permission.microphone.isGranted &&
      (await Permission.bluetoothConnect.isGranted ||
          await Permission.bluetooth.isGranted)) {
    return true;
  }
  return false;
}