initializeCameras method

Future<void> initializeCameras()

Implementation

Future<void> initializeCameras() async {
  if (isMobile) {
    camera_mobile_datas = await camera_package.availableCameras();
    is_camera_init = true;
  }
  if (isDesktop) {
    if (Platform.isWindows) {
      camera_windows = camera_package_windows.CameraWindows();
      camera_mobile_datas = await camera_windows.availableCameras();
      is_camera_init = true;
    }
  }
  return;
}