/// USB(UVC)摄像头设备实体。 class UsbCameraDevice { const UsbCameraDevice({ required this.deviceId, this.vendorId, this.productId, this.productName, this.supportedResolutions = const [], }); /// 系统分配的设备标识(重启可能变化,仅做本次会话使用)。 final String deviceId; final int? vendorId; final int? productId; final String? productName; /// 支持的分辨率字符串,例如 "1920x1080" / "1280x720"。 final List supportedResolutions; UsbCameraDevice copyWith({ String? deviceId, int? vendorId, int? productId, String? productName, List? supportedResolutions, }) { return UsbCameraDevice( deviceId: deviceId ?? this.deviceId, vendorId: vendorId ?? this.vendorId, productId: productId ?? this.productId, productName: productName ?? this.productName, supportedResolutions: supportedResolutions ?? this.supportedResolutions, ); } }